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.
What is the purpose of a declaration statement?
Think of how we create variables in Java.
Provide an example of an expression statement.
What operation modifies the value of `a`?
What does a declaration statement do?
It's related to the beginning of an object's life.
Control flow statements are used for...
Think about how decisions in code affect execution paths.
Create a method that takes two integers and returns their product using a return statement.
Remember how we declare methods and what return types they have.
Write a switch statement that prints the name of the day based on an integer input from 1 to 7.
What do you need to check for each potential day?
4 more questions in this section. Enroll free to practise them all.
Enroll free