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.
Define what a method is in Java.
Think about functions in mathematics.
What is the return type of a method that returns an integer?
What type of number is an integer?
What is the return type of a method that does not return any value?
Think of the word that means empty.
True or False: You can overload a method just by changing its return type.
Consider what it means to have different methods.
Write a complete Java program that demonstrates method overloading with at least three different overloads for a method named 'multiply'.
Consider how you can create variations of the same action.
Explain why you might choose to use a static method in a class designed for mathematical operations.
Think about operations that don't depend on particular objects.
6 more questions in this section. Enroll free to practise them all.
Enroll free