What is method in java ?



What is method in java ?..

Answer / Priya Raghuvanshi

A method is a block of code that performs a specific task. It is associated with an object or class and can be called by the user at runtime.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a default method?

1 Answers  


Can private class be extended java?

1 Answers  


How many threads can java run?

1 Answers  


What do you mean by local class?

1 Answers  


What is the difference between instanceof and isinstance?

1 Answers  


I need some details about an employee. i have only the employee id in my presentation layer(JSP).I entered that ID and click "Show Details" Button. Question is how the JSP pass that id to Controller layer and DAO and what mechanism we are using to retrive data from DB and how the data passed to JSP as a Output. Please explain in detail.

1 Answers   TCS,


Is there any difference between synchronized methods and synchronized statements?

1 Answers  


How can you generate random numbers in java?

1 Answers  


what is session facade ?

3 Answers  


What do you understand by the term wrapper classes?

1 Answers  


String is mutable or immutable?

3 Answers  


What is thread?

7 Answers   BMC, Virtusa,


Categories