0% found this document useful (0 votes)
4 views2 pages

Java Object-Oriented Programming Exam Guide

This document outlines the syllabus and examination structure for the Object-Oriented Programming through Java course for II B.Tech I Semester Supplementary Examinations, August 2023. It includes various units with questions related to Java concepts such as robustness, inheritance, packages, exception handling, and event handling. Students are required to answer one question from each unit, with a total of 70 marks available.

Uploaded by

Shiney Charles
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)
4 views2 pages

Java Object-Oriented Programming Exam Guide

This document outlines the syllabus and examination structure for the Object-Oriented Programming through Java course for II B.Tech I Semester Supplementary Examinations, August 2023. It includes various units with questions related to Java concepts such as robustness, inheritance, packages, exception handling, and event handling. Students are required to answer one question from each unit, with a total of 70 marks available.

Uploaded by

Shiney Charles
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

[Link].

Code No: CT3511 SRGEC-R20


II [Link] I Semester Supplementary Examinations, August 2023
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Computer Science and Engineering, Artificial Intelligence and Data Science, Artificial
Intelligence and Machine Learning & Information Technology)
Time: 3 Hours Max. Marks: 70
Note: Answer one question from each unit.
All questions carry equal marks.
5 × 14 = 70M
UNIT-I
1. a) Justify the statement – “Java is Robust”. (7M)

b) State and explain the rules to frame an identifier in java. List any 4 valid identifiers and 4
invalid identifiers. (7M)

(OR)

2. a) Develop a Java program to print default values of all primitive data types in java. (6M)

b) Develop a Java program to perform addition of two matrices. (8M)

UNIT-II

3. a) How to prevent inheritance in java justify with example program? (7M)

b) Write a Java program to find the sum of the elements of an array. (7M)

(OR)

4. a) Assume a situation where the super class and sub class are having 2 data members with
same name i,j . When we try to access i,j in sub class, then which members(super class or
sub class) will be accessed and why? Is there any way to access super class members in
subclass(if they are having same name)? If yes, use the approach to access super class data
members i,j in sub class, show this with an example program. (7M)

b) “A super reference variable can reference to a sub class object”. Justify this statement.
(7M)

UNIT-III

5. a) Create and access a user defined package where the package contains a class named
SquareDemo, which in turn contains a method called squareArea() which takes side of the
square as the parameter and returns the area of the Square. (7M)

b) Write a Java program to create multiple classes in same package (use appropriate access
specifiers). (7M)

(OR)

Page 1 of 2
6. a) With the help of [Link] develop a Java program to sort the array elements using
predefined Array methods. (7M)

b) Write a Java program to use predefined package [Link] and print date and time
using date methods. (7M)

UNIT-IV

7. a) Demonstrate the usage of try, catch and finally blocks with example program. (7M)

b) Develop a java program to display the state of a thread using Thread class. (7M)

(OR)

8. a) What happens when an exception is not handled in java. Justify with appropriate example.
(7M)

b) Does java only supports foreground Threads. Is there any support for Daemon threads in
java. Justify with appropriate examples. (7M)

UNIT-V

9. a) We enter and submit our login credentials on any websites login page. Identify the event
classes, event interfaces and corresponding methods in handling this event. (8M)

b) Diffrentiate Delegation Event Model with earlier event handling models. (6M)

(OR)

10. a) Develop an applet program which creates an applet with background color in black and
foreground color in red. (6M)
b) Design an applet with Choice control to hold list of current semester subjects, and display
the selected subject on label control. (8M)

*****

Page 2 of 2

You might also like