Why do we use return statement?



Why do we use return statement?..

Answer / Ayushi Srivastava

The return statement is used in Java to end a method call early and return control back to the calling method. It allows you to pass data from one method to another.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

An inner class can actually be a subclass of the outer class? a. true b. false

2 Answers  


What is a data structure java?

1 Answers  


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

1 Answers  


What are the limitations of procedural programming approach?

1 Answers   Amdocs,


How do you control extraneous variables?

1 Answers  


what is the difference between String and StringBuffer classes?

2 Answers   Infosys,


What is singleton class example?

1 Answers  


when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?

6 Answers  


What is JFC?

1 Answers  


is JVM platform dependent or independent..?

11 Answers   IBM, Tech Mahindra,


What is tcp and udp?

1 Answers  


What are the four corner stones of oop?

1 Answers  


Categories