[go: up one dir, main page]

0% found this document useful (0 votes)
28 views1 page

Java 2022

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

Java 2022

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Code No:872AA R20

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD


MCA II Semester Examinations, May - 2022
JAVA PROGRAMMING
Time: 3 Hours Max.Marks:75
Answer any five questions
All questions carry equal marks
---

1.a) Illustrate the use of ‘this’ keyword with an example.


b) Differentiate between procedural language and OOP. [7+8]

2.a) What is the main purpose of Constructor? How to invoke a constructor in JAVA?
b) Write a java program to illustrate the usage of conditional statements. [8+7]

3.a) Explain the creation of packages and accessing a package with sample program.
b) Write the importance of abstract classes. [8+7]

4.a) Illustrate the use of ‘super’ and ‘final’ key words in java.
b) Explain the benefits of inheritance. [8+7]

5.a) Explain nested try and final statements in exceptional handling.


b) Demonstrate the definition and implementation of interface in java. [7+8]

6.a) Distinguish between checked and unchecked exceptions.


b) Demonstrate Java program for array index out of bound and divide by zero exception.
[7+8]

7.a) Explain the following Layout Managers.


i) border layout ii) grid bag layout
b) Write a short note on following:
i) JFrame ii) Scroll Panes. [8+7]

8.a) Explain the life cycle of an applet.


b) Write the differences between multi-threading and multitasking. [7+8]

---oo0oo---

You might also like