SCJP Cheat Sheet 2026
The 30 highest-yield SCJP facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
72 questions
210 min time limit
65.00% to pass
- Which Java feature allows a class to inherit behavior from multiple sources without multiple inheritance of classes? → Interfaces with default methods
- Which of the following is true about abstract classes in Java? → They can contain both abstract and concrete methods
- Which Java I/O class should be used to write primitive data types (int, double, boolean) to a stream? → DataOutputStream
- Which of the following methods can modify a String object, s? → none of the above will change s
- In Java, can a single `catch` block catch multiple exception types? → Yes, using a pipe (|) separator since Java 7 (multi-catch)
- The following class(es)' methods can be used to create directories: → File
- Which interface should be implemented to allow objects to be sorted using `Arrays.sort()` without a Comparator? → Comparable
- Which of the following is NOT part of the Java Collections Framework hierarchy? → Array
- What will be the result of 7 % 3 in Java? → 1
- Which of the following is a correct way to create a new thread in Java? → Extend Thread class or implement Runnable interface
- Which of the following correctly describes method overloading in Java? → Same method name, different parameter list in the same class
- What is the effect of calling `System.gc()`? → It is a request to the JVM to run garbage collection; the JVM may ignore it
- Which collection class is best suited for implementing a LIFO (Last-In-First-Out) stack in modern Java? → java.util.ArrayDeque
- What is an enum in Java? → A special class that represents a group of named constants
- What is the default value of an instance variable of type boolean in Java? → false
- In Java, which method pair is used for inter-thread communication? → notify() and wait()
- Which of the following initialization strategies for the array "dayhigh" with seven values is correct? → int dayhigh[] = { 24, 23, 24, 25, 25, 23, 21 };
- Which of the following statements about a two-dimensional array of numbers is legal? → int[]a[] = new int[5][5];
- What does the `PriorityQueue` class use to determine the order of elements? → Natural ordering or a Comparator
- What does the `Collections.sort()` method require from the objects it sorts? → Objects must implement Comparable
- Which of the following exceptions is an unchecked exception? → NullPointerException
- Which concurrent collection class is designed for high-concurrency scenarios and partitions its data to reduce lock contention? → ConcurrentHashMap
- What is encapsulation in Java? → Hiding implementation by restricting direct access to fields and exposing via methods
- Can a non-static inner class declare static members? → Yes, but only static final constant fields
- What is the effect of marking a class member as `private`? → Accessible only within the declaring class
- What happens when a subclass constructor does not explicitly call a superclass constructor? → The default no-arg superclass constructor is called implicitly
- Given `TreeSet ts = new TreeSet<>(); ts.add(5); ts.add(1); ts.add(3);`, what does `ts.first()` return? → 1
- In Java, which method retrieves an enum constant by its name string? → EnumType.valueOf(name)
- Which of the following best describes the order in which a component is redrawn as a result of method calls? → invoke repaint() which invokes update(), which in turn invokes paint()
- Which statement about the `finalize()` method is TRUE? → It is called by the garbage collector at most once per object
Turn these facts into recall:
What Practice Test Geeks adds beyond an AI chat for SCJP
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length SCJP mock exam — 72 questions in 210 minutes with a 65% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed SCJP question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- SCJP flashcards built from the same question bank.
- Free SCJP practice tests with the correct answer shown after each question.
Was this helpful?
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy