NRI INSTITUTE OF TECHNOLOGY
(AUTONOMOUS)
Approved by AICTE, New Delhi: Permanently Affiliated to JNTUK, Kakinada
Accredited by NAAC with "A" GRADE, Accredited by NBA
(CSE,ECE&EEE)
An ISO 9001:2015 Certified Institution
Pothavarappadu (V), Agiripalli (M), Eluru District, A.P., India, Pin: 521 212
URL: www.nriit.edu.in, email: principal@nriit.edu.in, Mobile: + 91
8333882444
CSE-DS
ACADEMIC YEAR: 2024-25 II-YEAR-I SEM
SUB: OOPs Through JAVA ASSIGNMENT – II
1. What is an array in Java? How do arrays differ from regular variables?
2. Explain the process of declaring and initializing an array in Java. Provide
examples for both single-dimensional and multi-dimensional arrays.
3. How are files handled in Java? Provide an overview of the classes and methods
used to perform file operations like reading, writing, and deleting files.
4. What is the difference between text files and binary files in Java? How are they
managed using the Java I/O API?
5. What is dynamic method dispatch? Provide an example demonstrating its use in
Java.
6. What are abstract classes in Java? How do they differ from regular classes, and
how are they used in inheritance?
7. What is an interface in Java? How does it differ from a class, and what role does
it play in inheritance?
8. What is the CharSequence interface in Java, and how does it relate to strings?
9. What are multiple interfaces in Java? How can a class implement more than one
interface?
10. What are nested interfaces in Java? Provide an example demonstrating the use
of a nested interface.
11. What is multithreaded programming in Java, and why is it important for
modern software development?
12. What is the Formatter class in Java? Provide examples of how it can be used to
format strings, numbers, and dates.
13. Discuss the Random class in Java. How can it be used to generate random
numbers? Provide examples.
14. Explain the architecture of JDBC. What are the main components and how do
they interact with databases?
15. Explain the hierarchy of standard exception classes in Java. What is the
difference between Exception and RuntimeException?
16. How can text and images be displayed in a JavaFX application? Provide
examples of using Label, Text, and ImageView nodes.
NRI INSTITUTE OF TECHNOLOGY
(AUTONOMOUS)
Approved by AICTE, New Delhi: Permanently Affiliated to JNTUK, Kakinada
Accredited by NAAC with "A" GRADE, Accredited by NBA
(CSE,ECE&EEE)
An ISO 9001:2015 Certified Institution
Pothavarappadu (V), Agiripalli (M), Eluru District, A.P., India, Pin: 521 212
URL: www.nriit.edu.in, email: principal@nriit.edu.in, Mobile: + 91
8333882444
Section - A
S.NO ROLL NUMBERS QUESTION NUMBERS
1 1–8 1,16
2 9-16 2,15
3 17-24 3,14
4 25-32 4,13
5 33-40 5,12
6 41-48 6,11
7 49-56 7,10
8 57-66 8,9
9 67-71 9,1
Section - B
S.NO ROLL NUMBERS QUESTION NUMBERS
1 72-78 1,16
2 79-86 2,15
3 87-94 3,14
4 95-A1 4,13
5 A2-B0 5,12
6 B1-B8 6,11
7 B9-C6 7,10
8 C7-D4 8,9
9 D5- LES 9,1
Section - C
S.NO ROLL NUMBERS QUESTION NUMBERS
1 D8-E5 1,16
2 E6-F3 2,15
3 F4-G1 3,14
4 G2-G9 4,13
5 H0-H7 5,12
6 H9-I6 6,11
7 I7-J4 7,10
8 J5-LES 8,9
9 LES-ALL 9,1