Code: 105303Computer Science & Eng.3rd Semester1 Examination Papers

Object Oriented Programming Using Java

Official Bihar Engineering University examination question papers, marks distribution, and questions transcript. Available exam sessions: 2025.

Get Instant AI Answers on this Paper

Open BEU Connect Android app to solve any numerical or derive formulas step by step.

Ask AI in App
Official Exam Paper TranscriptB.Tech 3rd Semester Examination, 2025
Bihar Engineering University, Patna
B.Tech 3rd Semester Exam., 2025

OBJECT ORIENTED PROGRAMMING USING JAVA

Time: 03 HoursCode: 105303Semester: IIIFull Marks: 70

Instructions:

  1. The marks are indicated in the right-hand margin.
  2. There are NINE questions in this paper.
  3. Attempt FIVE questions in all.
  4. Question No. 1 is compulsory.
Q.1 Choose the correct option / answer the following (Any seven question only):[2 x 7 = 14]
  1. Which of the following is not a core feature of Object-Oriented Programming?

    1. Inheritance
    2. Encapsulation
    3. Polymorphism
    4. Compilation
  2. What is the main purpose of a class in Java?

    1. To create objects
    2. To store data only
    3. To execute the program
    4. To handle exceptions
  3. Which access modifier provides the highest visibility in Java?

    1. Private
    2. Protected
    3. Public
    4. Default
  4. Method overloading is an example of

    1. Compile-time polymorphism
    2. Runtime polymorphism
    3. Inheritance
    4. Abstraction
  5. Method overriding demonstrates

    1. Compile-time polymorphism
    2. Runtime polymorphism
    3. Encapsulation
    4. Abstraction
  6. Which of the following is used to achieve 100% abstraction in Java?

    1. Abstract class
    2. Interface
    3. Final class
    4. Static class
  7. A class can implement

    1. Only one interface
    2. Multiple interfaces
    3. Only one abstract class
    4. Multiple abstract classes
  8. The Object class is

    1. The root of all classes in Java
    2. A user-defined class
    3. An interface
    4. A final class only
  9. Which keyword is used to import a package?

    1. package
    2. import
    3. include
    4. using
  10. String class in Java is

    1. Mutable
    2. Immutable
    3. Abstract
    4. Final but mutable
Q.2[7+7=14]
  1. Explain the different types of access modifiers available in Java and describe their visibility scopes with suitable examples.

  2. Explain the difference between procedural programming and object-oriented programming paradigms. Why is Java considered an object-oriented language?

Q.3[7+7=14]
  1. Describe the concept of method overloading and method overriding with the help of suitable examples from Java.

  2. Explain the difference between an interface and an abstract class. How does Java support multiple inheritance using interfaces?

Q.4[7+7=14]
  1. Describe the exception hierarchy in Java. Differentiate between checked and unchecked exceptions with examples.

  2. Write a complete Java program to demonstrate the use of constructors (default, parameterized, copy), method overloading, and the ‘this’ keyword.

Q.5[7+7=14]
  1. Write a Java program to handle multiple exceptions using nested try-catch blocks and the finally clause. Include re-throwing of exceptions.

  2. Write a JDBC program to connect to a database, insert a record into a “Student” table, and retrieve all records using the Collections Framework (ArrayList) to store the results.

Q.6[7+7=14]
  1. Compare and contrast inheritance hierarchies with interface implementation. Analyze when you would prefer interfaces over abstract classes in a Java project.

  2. Evaluate the impact of garbage collection and the finalize() method on Java program performance. Is it advisable to rely on finalize() for resource cleanup? Justify your answer.

Q.7[7+7=14]
  1. “Multithreading improves performance but introduces complexity.” Critically evaluate this statement with reference to thread synchronization, priorities, and inter-thread communication.

  2. Explain the key features of Object-Oriented Programming and describe how each feature provides advantages over procedural programming.

Q.8[7+7=14]
  1. What is the purpose of break and continue statements in loops? Explain with examples.

  2. Write a Java program to print all odd numbers between 1 to 50 using a while loop.

Q.9 Write short note on any two of the following:[7 x 2 = 14]
  1. History of java

  2. Concept of Packages in Java

  3. Polymorphism

  4. Multiple inheritance

Related Official Syllabus

Object Oriented Programming using JAVA

105303

Official BEU curriculum units & topics for this examination subject.

Unit 1.0: OOP Concepts and Java Programming

Introduction to Java: History of java, Java buzzwords • Basics of Java programming • Difference between procedural and object-oriented programming paradigm • Need for OOPs paradigm, OOPs features, advantages of oops • JDK, JRE and JVM • Data types, variables, operators • Control structures including selection, looping • Java methods • Compilation and execution of simple program

Unit 2.0: Objects, Classes, and Constructors in Java

Objects and Classes: Basics of objects and classes in java • Declaring objects, new keyword • Defining and calling methods in class • Array of Objects • Constructors, Different types of Constructors • Overloading Methods and Constructors • Method Binding, Overriding and Exceptions • Passing Object as parameters, returning object • Static members • Concept of Access Modifiers (Public, Private, Protected, Default) • this Keyword, garbage Collection, finalize() method • Nested and Inner Classes • Exploring string class

Unit 3.0: Inheritance, Interfaces and Packages

Inheritance: Inheritance hierarchies, Benefits of Inheritance • Super and subclasses, member access rules, super keyword • Preventing inheritance: final classes and methods • The object class and its methods • Polymorphism: Dynamic binding, method overriding • Abstract classes and methods • Interface: Interfaces vs Abstract classes • Defining an interface, implement interfaces • Accessing implementations through interface references, extending interface • Packages: Defining, creating and accessing a package • Understanding CLASSPATH, importing packages

Unit 4.0: Exception Handling

Introduction to error and exception • Error vs Exception • Concepts of Exception Handling • Benefits of exception handling • Exception types, exception hierarchy • Checked and unchecked exceptions • Usage of try, catch, throw, throws and finally • Multiple catch clauses, nested try statements • Re throwing exceptions • Creating own exception sub classes

Unit 5.0: Introduction to Multithreading

Differences between multiple processes and multiple threads • Thread states • Creating threads, interrupting threads • Thread priorities • Synchronizing threads, inter thread communication

View Complete 3rd Semester Syllabus

Prepare Better with BEU Connect

  • Download papers for 100% offline study
  • Ask AI for step-by-step problem breakdown
  • Attempt official GATE CBT mock tests
  • Calculate SGPA and track attendance
Download Android App