Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a method in Java?
Think about methods performing actions.
What does void indicate in a method declaration?
Consider what happens when there's no return statement.
Which of the following is not a valid access specifier in Java?
Remember what access specifiers control.
True or False: A method must always have a return type.
Think about methods that do not return a value.
Design a method that returns the smallest of three numbers passed as parameters. Write the complete declaration.
Think about using nested conditions or built-in functions.
Create a void method that takes a string as input and prints it in reverse. Write the complete method.
Consider string manipulation techniques.
6 more questions in this section. Enroll free to practise them all.
Enroll free