This document offers over 100 thoroughly answered multiple-choice and true/false questions for the Intro to Java Programming (CS101) course, focusing on advanced and application-level Java topics relevant for the 2025/2026 academic year. Ideal for Computer Science, Software Engineering, and IT students, this collection supports final exam prep, concept reinforcement, and certification practice.
Structured to mirror university-level assessments, the content spans from error handling and class design to graphical user interface (GUI) elements and database connectivity. Each question includes a verified correct answer, with some explanations that clarify misconceptions and strengthen conceptual understanding.
Topics covered:
Exception Handling: try, catch, finally, checked vs unchecked exceptions, inheritance of Exception classes
Abstract Classes & Interfaces: instantiation rules, method signatures, implements usage, compiler behavior
Java I/O: working with BufferedReader, Scanner, File, FileNotFoundException, and IOException
Polymorphism & Binding: upcasting, method overriding, signature matching, dynamic method dispatch
JavaFX & GUI Components: TextArea, Label, ComboBox, ScrollPane, CheckBox, menu systems, EventHandler, Stage, Scene
Inner Classes: public vs private scope, event listener patterns
JavaFX Event Handling: handle(ActionEvent e), ActionEvent, KeyEvent, MouseEvent, GUI interactivity
JDBC (Java Database Connectivity): Connection, Driver, Statement, ResultSet, and basic SQL commands
Class Design and Syntax Correction: identifying and fixing common class/method declaration errors
Terminology & Definitions: precise identification of Java behaviors, rules, and class purposes
Miscellaneous Java Topics: method overloading vs overriding, menu item hierarchy, GridPane row setup, ScrollPane behavior
This resource is ideal for:
CS101 students revising for comprehensive Java exams
Learners preparing for Oracle Java certifications (e.g., OCAJP)
Self-taught developers looking for structured Java knowledge
Tutors building mock tests, quizzes, and review assignments
Bootcamp participants focusing on real-world Java applications
Its rich inclusion of GUI and database integration topics makes it stand out as a higher-level Java review document, aligned with both academic and practical expectations.
Keywords:
Java exceptions, Java interfaces, JavaFX components, Java GUI, Java abstract class, method overriding, method overloading, Java inner class, JDBC in Java, SQL in Java, Java event handling, ScrollPane JavaFX, ComboBox, Java file input, CS101 Java, Java exam review
Content preview
Java Exam #2 2025/2026 Exam
Questions and Answers | A+ Score
Assured
An abstract class is not instantiated, but serves as a superclass for other
classes.
True OR False - 🧠ANSWER ✔✔True
A(n) _____ is an object that is generated in memory as the result of an
error or an unexpected event.
a. Exception handler
b. Exception
c. Default exception handler
d. Error message - 🧠ANSWER ✔✔b. Exception
In a try/catch construct, after the catch statement is executed:
,a. the program returns to the statement following the statement in which the
exception occurred
b. the program terminates
c. the program resumes at the statement that immediately follows the
try/catch construct
d. the program resumes at the first statement of the try statement -
🧠ANSWER ✔✔c. the program resumes at the statement that immediately
follows the try/catch construct
How could the following method header be simplified?
public void copyFile(String str) throws IOException, EOFException
a. public void copyFile(String str) throws IO Exception
b. public void copyFile(String str) throws EOFException
c. public void copyFile(String str) throws EOFException, IOException
, d. public void copyFile(String str) throws Exception, IOException,
EOFException - 🧠ANSWER ✔✔a. public void copyFile(String str) throws
IOException
When the code in a try block may throw more than one type of exception,
you need to write a catch clause for each type of exception that could
potentially be thrown.
True OR False - 🧠ANSWER ✔✔True
The illegalArgumentException class inherits from the RuntimeException
class, and is therefore:
a. A checked exception class
b. An unchecked exception class
c. Never used directly
d. None of the above - 🧠ANSWER ✔✔b. An unchecked exception class
When you use a checked exception class, you must:
a. have a throws clause in the method heading
b. override the default error method
c. use each class only once in a method
3
COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED