D286 Java Fundamentals - Set 1 - Part 1

Test your knowledge of technical writing concepts with these practice questions. Each question includes detailed explanations to help you understand the correct answers.

Question 1: Which method serves as the entry point of a Java application?

Question 2: What does JVM stand for?

Question 3: What file extension does compiled Java bytecode use?

Question 4: Which of the following is a primitive data type in Java?

Question 5: How many bits does a Java int occupy?

Question 6: Which primitive type would you use for a value requiring decimal precision in financial calculations?

Question 7: What is the default value of an uninitialized int instance field in Java?

Question 8: What is the default value of an uninitialized boolean field?

Question 9: Which keyword declares a value that cannot be reassigned in Java?

Question 10: What does the static keyword indicate when applied to a field?

Question 11: Which access modifier makes a member accessible only within its own class?

Question 12: Which access modifier makes a member accessible from any class?

Question 13: What is the scope of a member declared with no access modifier?

Question 14: What does the protected access modifier permit?

Question 15: How do you write a single-line comment in Java?

Question 16: Which operator concatenates two Strings in Java?

Question 17: What is the result of the expression 7 / 2 when both operands are int?

Question 18: What does the expression 7 % 2 evaluate to?

Question 19: What does the ++ operator do when used as i++?

Question 20: Which comparison operator tests whether two primitive values are equal?


Complete the Captcha to view next question set.


Quick View

Need Guaranteed Results?

Our exam support service guarantees you'll pass your OA on the first attempt. Pay only after you pass!

Get Exam Support