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 the syntax to declare a method in Java?
Think about what comes first in the declaration.
What does the keyword 'void' indicate about a method?
How would you describe a method that doesn't give output?
What is the correct declaration of a method in Java?
Look for the keyword that indicates no return value.
A method with a return type of int must return a value of which type?
Consider what an int looks like.
Design a method named calculateAverage that takes three float parameters and returns their average.
Think about how averages are calculated mathematically.
Write a method that takes a string and returns its length. Describe what the method will do step by step.
Consider how strings are structured in Java.
6 more questions in this section. Enroll free to practise them all.
Enroll free