What is the purpose of the "return" statement in a method in Java?
A. To specify the method's access modifier
B. To indicate that the method should return a value
C. To stop the execution of the program
D. To indicate the method is static
Answer: Option B

Join The Discussion