Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is the purpose of a method in Java?
Think about how methods encapsulate behavior.
Name the components of a method declaration.
Remember the acronym APRM!
What is the return type for a method that does not return a value?
Think about methods that perform actions without returning data.
Is it true that you can overload a method solely by its return type?
Remember the rules of overloading we discussed.
Create a class with both static and non-static methods demonstrating various types of parameters and return types. Include method overloading and explain the differences.
Think about how data types affect method signature.
Write a recursive method that finds the nth Fibonacci number. Include comments explaining each part of your code.
Remember to define your base case clearly.
6 more questions in this section. Enroll free to practise them all.
Enroll free