Questions and Answers
Which of the following is the result of 5 + 3 in Java?
8 (Correct)
Which of the following is a primitive data type in Java?
int (Correct)
What does the keyword 'static' mean when applied to a method in Java?
The method is part of the class and can be called without creating an instance of the class. (Correct)
Which loop in Java is used when you want to execute a block of code at least once, regardless of the condition?
Signup and view all the answers
What is the purpose of the 'break' statement in a loop?
Signup and view all the answers