Core Java Programming Professional Certification exam answers 2026: This page lists all 100 questions of the official Core Java Programming Professional Certification exam by Itronix Solutions, each with its four answer options and the correct answer highlighted in green. Use it to revise every topic before you attempt the test and earn your verifiable certificate.
About this certification: Test your Core Java concepts: syntax, data types, OOP, inheritance, interfaces, exceptions, collections and the JVM.
| Certification | Core Java Programming Professional Certification |
| Provider | Itronix Solutions |
| Category | Programming & Development |
| Total questions | 100 multiple-choice questions |
| Marks | 1 mark per question (100 marks) |
| Passing score | 80% (80 out of 100) |
| Retake | Available if you do not pass |
| Certificate | Verifiable online certificate |
Take the exam: Core Java Programming Professional Certification on Itronix Solutions. See every other Itronix exam in our complete list of Itronix certification answers.
Core Java Programming Exam Questions and Answers
Questions 1 to 25
1. Java code is compiled into:
Correct answer: B. Bytecode
2. JVM stands for:
Correct answer: D. Java Virtual Machine
3. Which method is the entry point of a Java application?
Correct answer: D. public static void main(String[] args)
4. Which keyword is used to inherit a class?
Correct answer: B. extends
5. Which keyword is used to implement an interface?
Correct answer: B. implements
6. Which of these is NOT a primitive data type in Java?
Correct answer: C. String
7. What is the default value of an int instance variable?
Correct answer: C. 0
8. Method overloading means:
Correct answer: A. Same method name with different parameter lists
9. Method overriding happens when:
Correct answer: D. A subclass provides its own implementation of a parent method
10. Which keyword prevents a class from being inherited?
Correct answer: D. final
11. Encapsulation is mainly achieved by:
Correct answer: C. Using private fields with public getters and setters
12. Which block always executes after try-catch, whether an exception occurs or not?
Correct answer: A. finally
13. Which collection does NOT allow duplicate elements?
Correct answer: D. HashSet
14. Which collection stores key-value pairs?
Correct answer: A. HashMap
15. The keyword ‘this’ refers to:
Correct answer: A. The current object
16. Which access modifier makes a member visible everywhere?
Correct answer: D. public
17. An abstract class:
Correct answer: D. Cannot be instantiated directly
18. Which exception occurs when dividing an integer by zero?
Correct answer: B. ArithmeticException
19. String objects in Java are:
Correct answer: D. Immutable
20. Garbage collection in Java:
Correct answer: A. Automatically frees memory of unreachable objects
21. Java was originally developed at:
Correct answer: D. Sun Microsystems
22. Java is now owned by:
Correct answer: C. Oracle
23. The JRE contains:
Correct answer: A. The JVM and libraries needed to run Java programs
24. javac is used to:
Correct answer: C. Compile Java source files into bytecode
25. The java command is used to:
Correct answer: B. Run compiled Java programs
Questions 26 to 50
26. Java source files have the extension:
Correct answer: D. .java
27. Compiled Java bytecode files have the extension:
Correct answer: B. .class
28. A public class must be saved in a file:
Correct answer: A. With the same name as the class
29. Java is case-sensitive, meaning:
Correct answer: B. Main and main are different identifiers
30. Single-line comments in Java start with:
Correct answer: D. //
31. Multi-line comments in Java use:
Correct answer: D. /* … */
32. Javadoc comments start with:
Correct answer: A. /**
33. The size of an int in Java is:
Correct answer: D. 32 bits
34. The size of a long in Java is:
Correct answer: A. 64 bits
35. A double in Java is:
Correct answer: A. A 64-bit floating-point number
36. A char in Java is:
Correct answer: C. A 16-bit Unicode character
37. The boolean type in Java can hold:
Correct answer: A. true or false
38. The default value of a boolean field is:
Correct answer: C. false
39. Integer division 7 / 2 in Java gives:
Correct answer: A. 3
40. 7 % 2 in Java gives:
Correct answer: C. 1
41. Casting a double 9.7 to int gives:
Correct answer: B. 9
42. Widening conversion from int to long is:
Correct answer: A. Automatic
43. Narrowing conversion from double to int requires:
Correct answer: B. An explicit cast
44. The ++ operator:
Correct answer: A. Increases a variable by 1
45. x += 5 is equivalent to:
Correct answer: B. x = x + 5
46. The logical AND operator is:
Correct answer: B. &&
47. The logical OR operator is written as:
Correct answer: A. Two vertical bars
48. The ternary operator syntax is:
Correct answer: A. condition ? value1 : value2
49. String concatenation in Java can use:
Correct answer: D. The + operator
50. String.length() returns:
Correct answer: D. The number of characters
Questions 51 to 75
51. "Java".charAt(0) returns:
Correct answer: A. J
52. "Hello".substring(1, 3) returns:
Correct answer: A. el
53. "abc".equals("abc") returns:
Correct answer: B. true
54. "Java".toUpperCase() returns:
Correct answer: A. JAVA
55. String.valueOf(10) returns:
Correct answer: A. The string "10"
56. Integer.parseInt("42") returns:
Correct answer: A. The int 42
57. The Scanner class is commonly used to:
Correct answer: A. Read input from the keyboard or files
58. System.out.println() prints:
Correct answer: D. Text followed by a new line
59. System.out.printf() allows:
Correct answer: C. Formatted output using format specifiers
60. An if-else statement chooses:
Correct answer: D. Between code blocks based on a condition
61. A switch statement can work with:
Correct answer: B. int, char, String and enum values
62. The default case in a switch runs when:
Correct answer: D. No other case matches
63. A for loop is typically used when:
Correct answer: B. The number of iterations is known
64. A while loop checks its condition:
Correct answer: D. Before each iteration
65. A do-while loop runs its body:
Correct answer: A. At least once
66. The enhanced for loop (for-each) is used to:
Correct answer: A. Iterate over arrays and collections
67. The continue statement:
Correct answer: D. Skips to the next iteration of the loop
68. Labeled break statements can:
Correct answer: C. Exit outer loops
69. An array in Java is declared as:
Correct answer: B. int[] numbers = new int[5];
70. Array indices in Java start at:
Correct answer: D. 0
71. numbers.length returns:
Correct answer: A. The size of the array
72. Accessing an index outside an array’s bounds throws:
Correct answer: C. ArrayIndexOutOfBoundsException
73. A two-dimensional array can be declared as:
Correct answer: B. int[][] grid = new int[3][4];
74. Arrays.sort(arr) is used to:
Correct answer: A. Sort an array in ascending order
75. Arrays.toString(arr) returns:
Correct answer: C. A readable string of array elements
Questions 76 to 100
76. A method in Java is:
Correct answer: D. A block of code that performs a task and can be called
77. The return type void means:
Correct answer: D. The method returns no value
78. Method parameters in Java are passed:
Correct answer: D. By value (object references are passed by value)
79. Method overloading requires:
Correct answer: B. Different parameter lists with the same method name
80. A static method can be called:
Correct answer: B. Using the class name without creating an object
81. Local variables must be:
Correct answer: C. Initialised before use
82. Variable scope refers to:
Correct answer: B. Where a variable can be accessed in code
83. A constant in Java is declared with:
Correct answer: C. final
84. Packages in Java are used to:
Correct answer: B. Group related classes and avoid naming conflicts
85. The import statement allows:
Correct answer: C. Using classes from other packages
86. java.lang is:
Correct answer: D. Imported automatically into every Java program
87. Math.sqrt(16) returns:
Correct answer: C. 4.0
88. Math.max(3, 7) returns:
Correct answer: A. 7
89. Math.random() returns:
Correct answer: A. A double between 0.0 (inclusive) and 1.0 (exclusive)
90. StringBuilder.append() is used to:
Correct answer: A. Add text efficiently to a mutable string
91. An object is created from a class using:
Correct answer: B. The new keyword
92. Instance variables belong to:
Correct answer: D. Individual objects
93. A constructor has:
Correct answer: C. The same name as the class and no return type
94. If no constructor is written, Java provides:
Correct answer: C. A default no-argument constructor
95. Getter and setter methods support:
Correct answer: D. Encapsulation of private fields
96. The == operator on objects compares:
Correct answer: C. References (memory addresses)
97. The main method must be:
Correct answer: C. public static void
98. IDEs commonly used for Java include:
Correct answer: D. IntelliJ IDEA, Eclipse and NetBeans
99. Java’s "write once, run anywhere" means:
Correct answer: A. Compiled bytecode runs on any platform with a JVM
100. The ! operator in Java:
Correct answer: C. Negates a boolean value
How to Pass the Core Java Programming Exam
- Read every question carefully; most options look similar, so look for the most precise answer.
- Revise the questions above topic by topic rather than memorising letters, because option order can change in the live test.
- You need 80 correct answers out of 100 to pass, so aim to understand at least 85 to stay safe.
- If you do not clear it on the first attempt, review the questions you missed and use the retake option.
Frequently Asked Questions
How many questions are in the Core Java Programming Professional Certification exam?
The exam has 100 multiple-choice questions, each worth 1 mark.
What is the passing score for the Core Java Programming Professional Certification?
You need at least 80% (80 out of 100) to pass and receive the certificate.
Can I retake the Core Java Programming Professional Certification exam?
Yes. If you score below 80%, you can retry the test after reviewing the topics.
Is the Itronix certificate verifiable?
Yes. Every certificate issued by Itronix Solutions has a unique ID that can be checked on the Itronix verify-certificate page.
More Programming & Development Certification Answers
- Advanced Java Certification Exam Answers
- Android Development Certification Exam Answers
- Automation Testing Certification Exam Answers
- Blockchain Certification Exam Answers
- C & C++ Programming Language Certification Exam Answers
- Certified Quality Engineer Professional Certification Exam Answers
- Data Structures and Algorithm Certification Exam Answers
- Database Management System DBMS Certification Exam Answers
Disclaimer: These answers are provided for learning and revision. Questions and answers are checked regularly; if you find a mistake, let us know in the comments.
Priya Dogra – Free Certifications, Exam Answers & Career Guides Free certification exam answers, courses, scholarships and career guides for learners worldwide