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 method in Java?
Think about what happens when you invoke a block of code.
Define return type in a method.
Recall what you specify before the method name in its declaration.
What does a method in Java do?
Recall what a method encapsulates.
True or False: A method can return multiple values.
Think about the return types allowed in Java.
Develop a method that checks if a number is prime. Include parameter input and returning a boolean.
Consider the definition of prime numbers and loops.
Create a method that merges two sorted arrays into a single sorted array.
Think about how sorting and array indexing works.
6 more questions in this section. Enroll free to practise them all.
Enroll free