What is a method declaration?



What is a method declaration?..

Answer / Rishi Kumar

A method declaration in Core Java specifies the name, return type (if any), and parameters of a method. It also includes the method's body that contains the code to be executed when the method is called. Example: public static void main(String[] args) { ... }. In this case, 'main' is a method declaration.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why set is used in java?

1 Answers  


Say any two properties in beans?

1 Answers  


What is regex java?

1 Answers  


When can you say a graph to be a tree?

1 Answers   Amazon,


How many types of classes are there in java?

1 Answers  


What is a platform?

1 Answers  


Tell some latest versions in JAVA related areas?

1 Answers  


What is skeleton and stub?

1 Answers  


Can we have a try block without catch block?

1 Answers  


What causes memory leaks in java?

1 Answers  


what are the analysis of an object

2 Answers  


Can we force the garbage collection to run?

1 Answers  


Categories