2024 - BCA[5th Semester] - Java Programming - Purnea University


BCA 2 SEM-5
BCA (SEMESTER V)
EXAMINATION DECEMBER, 2024
JAVA PROGRAMMING
Time: 3 Hours                                          Maximum Marks: 70

Note: Candidates are required to give the answers in their own words as far as practicable. The questions are of equal value. Answer any five questions.
  1. What are the main differences between C++ and Java in terms of support systems and program structures?

  2. Explain the concept of the Java Virtual Machine(JVM) and its role in Java Programming.

  3. Discuss the significance of bitwise and logical operators in Java. Provide examples of their usage.

  4. Write a Java program using nested if-else statements to find the largest of three numbers.

  5. How is method overloading implemented in Java? Provide an example.

  6. Explain the concept of inheritance in Java. How can a class extend another class?

  7. What is the difference between a final class and a regular class in Java? Provide use cases.

  8. Discuss the differences between one-dimensional and two-dimensional arrays in Java. Illustrate with an Example.

  9. What is an interface in Java? How do you define and implement an interface in a Java Program?

  10. Explain the life cycle of a thread in Java. How does thread synchronization work in Java?
***