Exam2026Proposed solution included

CSC 308 Java Programming Exam 2026

About this paper

CSC 308: Second semester examination in Java Programming (CSC308), University of Buea Faculty of Science, Department of Computer Science, Instructor Nyanga Bernard Y., Tuesday 01/07/2026, 2 hours. A comprehensive, multi-format paper: Section A is 25 multiple-choice questions covering core Java syntax and semantics (abstract classes, exception handling, access modifiers, collections, arrays, polymorphism, threads, operator precedence, checked exceptions, static methods, Swing components, interfaces vs abstract classes, I/O classes, final variables, primitive types, modulo arithmetic, control flow, inheritance, object references, access modifiers, and ArrayList vs LinkedList performance). Section B is 16 true/false statements on Java semantics (String immutability, super keyword, ArrayList ordering, break/continue, HashMap null handling, operator overloading, finalize(), synchronized methods, instanceof, integer division, interface fields, while vs do-while, abstract classes, array objects, constructors). Section C is 9 fill-in-the-blank vocabulary questions. Section D has 7 short-answer/code items: explaining main(), declaring a variable, overloading vs overriding, autoboxing/unboxing, Java I/O streams, debugging an off-by-one array-index loop error, and designing a Vehicle/Car/Bicycle class hierarchy using inheritance and composition.

Open in Shoracy

Opens this paper in the app on your phone.

University of Buea

Faculty of Science - FS

Computer Science - CSC

CSC3082026

Java Programming

Exam · Second Semester · Level 300

From this paper

  1. Section A: Write the letter of the best answer for each question.

    1.

    Which keyword is used to define an abstract class in Java? A) abstract B) static C) final D) void

  2. 2.

    What is the primary purpose of the finally block in a try-catch-finally statement? A) To catch specific exceptions. B) To execute code regardless of whether an exception occurred. C) To re-throw an exception. D) To declare a new exception type.

Open in the app to read the full paper and its proposed solution.

View solutionOpen in Shoracy

At a glance

Course code
CSC308 (CSC 308)
Type
Exam
Year
2026
Level
Level 300
Semester
Second Semester
Proposed solution
Included

Where it's from

  1. University

    University of Buea
  2. Faculty

    Faculty of Science - FS
  3. Department

    Computer Science - CSC

Read CSC308 2026 in Shoracy.

  • Every page, with zoom for diagrams and small print
  • The proposed solution, one tap away
  • Stays on your phone after the first open, even offline
Open in Shoracy