HOLIDAY SALE! Save 50% on Membership with code HOLIDAY50. Save 15% on Mentorship with code HOLIDAY15.

7) Conditionals & Loops Lesson

Java Return Statement Teaser

3 min to complete · By Ryan Desmond

The return statement is one of the most frequently used keywords in Java, and you'll notice it in several of the upcoming sections and labs.

What is the Return Statement in Java?

The return statement determines what information you receive "in return" when you call a Java method. Methods are covered in depth in Java 201, but it is important that you are quickly introduced to this topic here so you're not confused when you see the return keyword in use in the upcoming sections.

Additional Resource

Please read this post for a moment to understand the return keyword before coming back and proceeding with the Conditional Statements and Flow Control section.

Java `return` Keyword