Quantcast
answersLogoWhite
notificationBell

Top Answer
User Avatar
Wiki User
Answered 2010-06-28 03:43:03

A Java method is a sequence of statements. It is comparable to a function, subroutine, or procedure in other languages.

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Still Have Questions?

Related Questions

What is overridnig method and overlording method in java?

There is no such thing as overlording in Java.


What is mean by method invoking in java?

method invoking refers to the action in which we call a Java method from within another java method or class. Method invocation is analogous to a function call in procedural programming.


Can you create a method within a method in java?

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


What is the task of main method in java program?

1- What is the task of main method in a java program?


Why finalize method is use in java?

Finalize method is used to remove non-java resources


What is the task of the main method in java platform?

It is the method that gets called when a Java application is started.


What is function in java terminology?

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.


What is the main method in a JAVA program?

the main method in java tells the JVM from where to start execute the program



Why comparator has equals method?

The Java superclass Object says that all Java objects have an equals method. Thus Comparator has an equals method.



What is a getContentPane method in Java?

The getContentPane() method is used to get the main component in a Java Swing JFrame. It is usually a JPanel.


What is the return type of finally method in java?

The final and finally keywords have no impact on the return type of a method in Java.


Why java main method is void?

A void method is one that returns no value. The Java main() method is the first method to be called, therefore it doesn't need to return a value to another Java method, therefore it is declared as void. If something needs to be returned to the operating system, this is done differently, not by "returning a value" in the sense of Java.


Is it possible to define a java static method inside a main method?

No. Java does not allow the declaration of methods within methods.


How nesting of methods is done in java?

Java does not allow nesting of methods. You cannot declare a method inside another method


When do you declare a method final in java?

You declare a method final in Java when you do not want any subclasses of your class to be able to override the method. I have also heard that this allows the Java compiler to make more intelligent decisions. For example, it supposedly allows Java to decide when to make a method inline. (Note that this is all unconfirmed)


What is native variable in java?

native is a key word used in java method. there is no variable as native in java



What is function in java?

In Java, there are no functions. They call it method and you can define it within a class.


Can override thread's run method?

Yes you can very well do... the run method is nothing but a Java method and all properties applicable to Java methods are applicable to it also.


Can a method declare multiple return values in java?

A method in java can declare only one return value and type at a time. For ex: a single method cannot have a code that returns a string in some cases and an integer in other cases. Java compiler does not let you do that. You can only have one return type for every method in java.


How does java support the concept of destructer in java?

In Java, Java does support the concept of destructor, it's done via special method finalize.




Still have questions?

Trending Questions
Previously Viewed
What is a method in Java? Asked By Wiki User
Unanswered Questions
What plug replaces l8rtc? Asked By Wiki User
Who are perceptual region's? Asked By Wiki User