0% found this document useful (0 votes)
2 views16 pages

Java Practical File

The document outlines a series of programming practicals focused on various Java concepts including method overloading, static variables, inheritance, polymorphism, aggregation, abstract classes, interfaces, exceptions, threading, and Swing applications. Each practical includes a brief description of the task to be accomplished, with an emphasis on demonstrating specific programming principles. The document serves as a guide for students to apply their knowledge of Java through hands-on coding exercises.
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)
2 views16 pages

Java Practical File

The document outlines a series of programming practicals focused on various Java concepts including method overloading, static variables, inheritance, polymorphism, aggregation, abstract classes, interfaces, exceptions, threading, and Swing applications. Each practical includes a brief description of the task to be accomplished, with an emphasis on demonstrating specific programming principles. The document serves as a guide for students to apply their knowledge of Java through hands-on coding exercises.
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

TABLE OF CONTENTS

[Link] PRACTICALS [Link]


1. Write a program to demonstrate use of
method overloading to calculate area of
square, rectangle and triangle.
2. Write a program to demonstrate the use of
static variable, static method and static
block.
Write a program to demonstrate concept of
3.
``this``.

4. Write a program to demonstrate multi-level


and hierarchical inheritance.
Write a program to use super() to invoke base
5.
class constructor.

6. Write a program to demonstrate run-time


polymorphism.

7. Write a program to demonstrate the concept


of aggregation.
Write a program to demonstrate the concept
8.
of abstract class with constructor and ``final``
method.

9. Write a program to demonstrate the concept


of interface when two interfaces have unique
methods and same data members.
Write a program to demonstrate checked
10.
exception during file handling.

11. Write a program to demonstrate unchecked


exception.
12. Write a program to demonstrate creation of
multiple child threads
Write a swing application that uses atleast 5
13.
swing controls.

14. Write a program to implement border layout


using Swing.
Write a java program to insert and update
15.
details data in the database.
Q1 = Write a program to demonstrate use of
method overloading to calculate area of square,
rectangle and triangle.

Input

Output
Q2 = Write a program to demonstrate the use of
static variable, static method and static block.

Input

Output
Q3 = Write a program to demonstrate concept of
``this``.

Input

Output
Q4 = Write a program to demonstrate multi-level
and hierarchical inheritance.

Input

Output
Q5 = Write a program to use super() to invoke base
class constructor.

Input

Output
Q6 = Write a program to demonstrate run-time
polymorphism.

Input

Output
Q7 = Write a program to demonstrate the concept
of aggregation.

Input

Output
Q8 = Write a program to demonstrate the concept
of abstract class with constructor and ``final``
method.

Input

Output
Q9 = Write a program to demonstrate the concept
of interface when two interfaces have unique
methods and same data members.

Input

Output
Q10 = Write a program to demonstrate checked
exception during file handling.

Input

Output
Q11 = Write a program to demonstrate unchecked
exception.

Input

Output
Q12 = Write a program to demonstrate creation of
multiple child threads.

Input

Output
Q13 = Write a swing application that uses atleast 5
swing controls.

Input

Output
Q14 = Write a program to implement border layout
using Swing.

Input

Output
Q15 = Write a java program to insert and update
details data in the database.

Input

Output

You might also like