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.
- What are the main differences between C++ and Java in terms of support systems and program structures?
- Explain the concept of the Java Virtual Machine(JVM) and its role in Java Programming.
- Discuss the significance of bitwise and logical operators in Java. Provide examples of their usage.
- Write a Java program using nested if-else statements to find the largest of three numbers.
- How is method overloading implemented in Java? Provide an example.
- Explain the concept of inheritance in Java. How can a class extend another class?
- What is the difference between a final class and a regular class in Java? Provide use cases.
- Discuss the differences between one-dimensional and two-dimensional arrays in Java. Illustrate with an Example.
- What is an interface in Java? How do you define and implement an interface in a Java Program?
- Explain the life cycle of a thread in Java. How does thread synchronization work in Java?
***