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

Retest JAVA

The document outlines a series of Java programming tasks to be completed using EditPlus and Eclipse. It includes creating various classes and methods, demonstrating concepts such as method overloading, overriding, abstract classes, interfaces, exception handling, and database connectivity. Additionally, it involves creating a login page and a dashboard with specific menus and functionalities.
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)
0 views2 pages

Retest JAVA

The document outlines a series of Java programming tasks to be completed using EditPlus and Eclipse. It includes creating various classes and methods, demonstrating concepts such as method overloading, overriding, abstract classes, interfaces, exception handling, and database connectivity. Additionally, it involves creating a login page and a dashboard with specific menus and functionalities.
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
You are on page 1/ 2

JAVA

EditPlus
1. Create a Hello world program in Edit plus (Text Editor) (Set the Complier &
Interpreter in Edit plus)
2. Create a Class with static & non-static variables and static & non-static methods and
write the access code. (All must Follow Naming Convention)
3. Show an example of Local/Global/Static variable?
4. Create a Class with variables and methods. (Initialization of object should be done by
Constructor & Display all using toString() and Access It).
5. Show an example of method overloading?
6. Show an example of method overriding?
7. Show an example of Abstract class?
8. Show an example of Interface?
Eclipse

1. Write a Java program that demonstrates the use of an interface in a real-time


scenario. Define an interface Payment with methods makePayment() and
checkBalance(). Implement this interface in classes CreditCardPayment and
UPIPayment.
2. Provide a real-world example of an abstract class. Create an abstract class Shape
with an abstract method draw(). Implement the draw() method in subclasses Circle and
Rectangle.

3. Demonstrate method overriding in a real-world scenario by creating a base


class Bank with a method getInterestRate(). Override this method in derived
classes like SBI and HDFC to provide different interest rates.
4. Write a Java program demonstrating method overloading in a real-time scenario,
where a Calculator class can perform addition of integers or concatenation of strings
using overloaded methods.
5. Design a Plain Old Java Object (POJO) class Emp with the following attributes: name,
id, and salary. Ensure the class includes appropriate getter and setter methods for
these attributes.
6. Write a Java program to create a class Accountant with attributes: name, id,age and
address. Implement a method displayInfo() to display the accountant details, method
calculateSalary().
7. Demonstrate Object class method
a. Finalize
b. ToString
c. Hashcode&Equals
d. Cloning
8. Write a Java program that demonstrates the usage of try and catch blocks to handle
multiple types of exceptions, such as ArithmeticException and NullPointerException.
9. Write a Java program to demonstrate the use of a finally block.
10. Provide a Java program demonstrating the use of multi-catch.
11. Write a Java program that demonstrates exception propagation. Create a method
that throws an exception and another method that calls this method and handles the
exception using try-catch
12. Show an example of Array List/ Linked List / Vector with following components:
• Add, Delete, Update, Show and Search Element into List.
13. Show an example of object iteration by using following components
• for each loop, iterator, enumerator, list iterator
14. Show an example of steps to connect with database.
15. Store the information of form in database & perform following operations.
a. Insert Info, Update Info, Delete Info, Display info
16. Create Login page with fields Username & Password.
17. Create a dashboard with Menus: (Employee, Employee details, Account, Utilities) &
Submenus:
• Employee: Add, Update, Delete.
• Employee details: Show Employees, Search Employee.
• Account: Show Employee Salary.
• Utilities: Help, Thought of the day, Exit.

You might also like