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.
Define a method and its key characteristics.
Think about what happens when a method is called.
What is the ideal number of parameters for a method?
Remember the Five-Parameter Principle.
What is the primary purpose of methods in Java?
Think about what methods do.
True or False: A method should always return a value.
What do we call a method that doesn't return anything?
Write a method to process user input that limits parameters and documents its functionality. Explain your rationale.
Consider what inputs are necessary for processing effectively.
Refactor a method known for having many parameters and side effects. Describe how to improve it.
What would you isolate?
5 more questions in this section. Enroll free to practise them all.
Enroll free