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

Java Programming

Uploaded by

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

Java Programming

Uploaded by

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

QUANTUM UNIVERSITY

Campus: - Mandawar, 22 Km Mile Stone, Roorkee - Dehradun Highway (NH-73)


ROORKEE- 247667 (Uttarakhand, INDIA)

TUTORIAL 03
(Odd Semester 2024-2025)
Subject Name Programming in JAVA Concepts Subject Code: CA33203
Program/Branch/Year: BCA/BCA/II Date: 30-09-2024
Max Marks:30 Due Date: 07-10-2024

Q 1. Explain the concept of interfaces in java? Explain how a class can implement multiple
interfaces and achieve multiple inheritance with example. [BL 02]
Q 2. Explain the concept of abstract classes and abstract methods in Java. How do they
differ from interfaces? [BL 02]
Q 3. Discuss the role of access control modifiers in Java. Explain how these modifiers are
used to control access to classes, methods, and variables in inheritance. [BL 03]
Q 4. What are Java packages? Explain how to create a user-defined package and how Java’s
built-in packages are used in java. [BL 03]
Q 5. Write a program in java to calculate area of a rectangle and area of a circle using
inheritance and interface. [BL 03]
QUANTUM UNIVERSITY
Campus: - Mandawar, 22 Km Mile Stone, Roorkee - Dehradun Highway (NH-73)
ROORKEE- 247667 (Uttarakhand, INDIA)

TUTORIAL 04
(Odd Semester 2024-2025)
Subject Name Programming in JAVA Concepts Subject Code: CA33203
Program/Branch/Year: BCA/BCA/II Date: 30-09-2024
Max Marks:30 Due Date: 07-10-2024

Q 1. What are nested and inner classes in Java? Explain the different types of inner classes,
such as static nested classes, non-static inner classes, local inner classes, and
anonymous inner classes, with examples.
[BL 02]
Q 2. Explain the java.util package and its commonly used classes such as Random, Date,
and Hashtable. [BL 03]
Q 3. Explain method overloading in Java. How does it differ from method overriding?
Provide examples demonstrating the use of both concepts.
[BL 02]
Q 4. Explain the different types of inheritance supported in Java, including simple and
multilevel inheritance. Discuss the advantages and limitations of using inheritance in
object-oriented programming, with examples. [BL 03]
Q 5. Explain the java.lang.Math class in Java. Discuss the importance of its static methods
for performing mathematical operations. Provide examples to demonstrate how
methods such as sqrt(), pow(), abs(), and random() are used in a Java program.
[BL 03]

You might also like