answersLogoWhite

0

No, Java only allows a method to be defined within a class, not within another method.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Is it possible to override overloaded methods why?

Yes. Overloaded methods are also Java methods and all Java methods can be overridden.


Explain three different methods in java?

There are three different methods /functions in java are there : 1)computational methods.2)manipulative methods.3)procedural methods.


What is a java object?

A java object is a collection of methods and properties defined in the Java programming language.


Is it possible while developing any software by using java can you manage database?

Yes. In Java this is done through the JDBC classes.Yes. In Java this is done through the JDBC classes.Yes. In Java this is done through the JDBC classes.Yes. In Java this is done through the JDBC classes.


The actions in a java class are called?

The actions in a java class are called methods.


Who invoke main function in java?

The Java Runtime Environment invokes main methods.


What makes up a Java class?

Fields and methods. Fields are variables defined at the class level, i.e., they are available for all methods. Methods are the equivalent of functions / procedures, but they are defined for a specific class.


What is the use of functions in java?

Same as in other languages. To organize commands into logical pieces. However, in Java the functions are called "methods". This is related to the fact that in Java, methods or functions are defined as part of a class.


What are duplicate java method names?

overloaded methods.


What is the purpose of java methods?

go ask your monitor.


What implicit modifiers interface methods have in java?

public


What is a nesting function in Microsoft Excel terms?

Nesting a function is putting one function inside another. This can be done for more complex formulas. Nesting has to be done carefully as it is easy to make mistakes and get the wrong results, or for the formula not to work at all.