Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is a return type in a method?
Think about what a method can output.
What keyword is used for methods that do not return a value?
It's a common term used in programming.
What is a method's return type?
Remember the type of output while using methods.
True or False: All methods must have a return type.
Think about methods that just perform actions.
Create a method that determines the maximum of three integers and returns that value. Explain its return type.
Think about how you can use nested methods to achieve this.
Write a void method that accepts a String and returns a greeting message with that String, and discuss the significance of its return type.
Remember how actions can be performed without needing to return information.
7 more questions in this section. Enroll free to practise them all.
Enroll free