0% found this document useful (0 votes)
3 views

ESE Program List of Java

Uploaded by

vickyabhang3741
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

ESE Program List of Java

Uploaded by

vickyabhang3741
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

 Write a program to print the area of a rectangle by creating a class

named 'Area' having two methods. First method named as 'setDim'


takes length and breadth of rectangle as parameters and the second
method named as 'getArea' returns the area of the rectangle. Length
and breadth of rectangle are entered through keyboard.

 Assign and print the roll number, phone number and address of two
students having names "Sam" and "John" respectively by creating
two objects of class 'Student'.

 Write a program that would print the information (name, year of


joining, salary, address) of three employees by creating a class
named 'Employee'. The output should be as follows:
Name Year of joining Address
Robert 1994 64C- WallsStreat
Sam 2000 68D- WallsStreat
John 1999 26B- WallsStreat

 Implement a java program to demonstrate the method overloading


concept. Use Class CalculateArea. And Find the area of Triangle
and Square.

 Implement a java program : Create the class Prime. In Main


method take a number as input. Call PrimeCheck method to check
whether the entered number is prime or not. ( Use with argument
with return type )

 Implement a java program: create the class Student. Initialize the data for
3 Students using the parametrized constructor. Use Display method to
display information of all 3 Students.
 Implement a java program to demonstrate the method overloading
concept. Use Class CalculateArea. And find the area of Triangle and
Square.

 Implement a java program to demonstrate the method overloading


concept

 Implement following Inheritance


 Implement following Inheritance

 Implement following Inheritance


 Implement following Inheritance

 Implement concept of Method Overridding.

 Write a Java program to create an interface Shape with the getArea()


method. Create three classes Rectangle, Circle, and Triangle that
implement the Shape interface. Implement the getArea() method for each
of the three classes.

 Write a Java program to create an abstract class Animal with an abstract


method called sound(). Create subclasses Lion and Tiger that extend the
Animal class and implement the sound() method to make a specific sound
for each animal.

 Write a Java Program to demonstrate implementation of Nested classes.

 Java Program for ArrayList API and LinkedList API (All)


 Java Program for Vector API and Hashtable API (All)

 Java Program for LinkedList API and TreeSet API (All)


 Implement the java program for LinkedList , , perform the following operation
- Add elements in LinkedList
- Add element in Fist position
- Add element in Last Position
- Add element at particular location
- Find the element in list
- Find the First and Last element
- Remove the particular element in the list
- Remove the First and last element in the list
- Check presence of any element in Linked List

 Implement the java program for creating the Vector , perform the following operation
- Add elements in Vector
- find the size of Vector
- Sort the Elements in Vector
- Update the Element in Vector
- Find position of any particular element in Vector
-Check presence of any element in the Vector
-Remove element from Vector

 Implement the Java program to implement the stack


- Push elements in the stack
- Pop element form the stack
- Check whether the stack is empty
- Search the element in the stack
 Implement the program to demonstrate the string operations (use String class)
 Implement the program to demonstrate the string operations (use String Buffer)
 Implement the program to demonstrate the string operations (use String Builder)
 Implement the java program for ArrayList , perform the following operation
- Add elements in ArrayList
- find the size of ArrayList
- Sort the Elements in Arraylist
- Update the Element in Arraylist
- Find position of any particular element in ArrayList
-Check presence of any element in the ArrayList
-Remove element from ArrayList

 Java program for Hashtable API and TreeSet API (All)

 Java Program for TreeSet API and ArrayList (All)

 Java Program for Queue and Stack (All)

 Java Program for demonstrating StringBuffer class and its methods (All).

 Java Program for demonstrating StringBuilder class and its methods(All).

 Java Program which handles divide by zero situation using try and catch

 Java program which handles NullPointer, ArrayIndexOutOfBounds


exception

 Java Program which uses throw, throws and finally keyword

 Implement Java program which creates College class as a main class and
create two other classes such as faculty and student. Read the details of
faculty and students in main, pass these details to method defined in
respective class, print those details. Demonstrate initialization of object
for 2 faculties and 2 students using getdata () and putdata() methods.
 Implement a java program : create the class Student. Initialize the data for
3 Students using the parametrized constructor. Use Display method to
display information of all 3 Students.
 Implement a java program to demonstrate the method overloading
concept. Use Class CalculateArea. And Find the area of Triangle and
Square.
 Implement the java Program for interface
Create the interface bank with interest_rate method.
Class SBI, UBI, PNB will implement the interface to calculate the interest rate on
principle amt.
Assume the interest_rate for different banks are
SBI: 9.15 % , UBI : 9.7 % PNB: 9 %
 Implement the java program for
Create the two interfaces : Motorbike and Cycle. Motorbike interface consists of the
attribute speed. The method is totalDistance(). Cycle interface consists of the attribute
distance() and the method speed().
Calculate the total distance and average Speed using following Formulas:
totalDistance = speed*distance;
avgSpeed=totalDistance/speed;

You might also like