Task For Core Java - Pradip K
Task For Core Java - Pradip K
-------------------------------------------------------
Task # 1:-
Task # 2:-
Task # 3:-
--------------------------------------------------------------------------------------------------------------
W.A.java program create a class Student details which having roll_no, name, percentage. Accept a
student records and display it [use accept_data() and display_data() methods..].
W.A.java program create a class Employee [ emp_id, emp_name, age, salary]. Accept a Employee
records and display it [use accept_data() and display_data() methods..].
W.A.java program create a class Student details which having roll_no, name, percentage. Accept 3
students records and display it.(use Constructor).
W.A.java program create a class Mobile [model_no, model_name, cost] Accept 5 Mobiles details
and display it.(use Constructor and array of Objects).
W.A.java program create a class Student details which having roll_no, name, and 5 subjects marks[ ].
Accept a students records, find total_marks and percentage. display the all student data.
Write a java program for a cricket_player The program should accept the details from user [ Player
code, name,country_name, runs,]. The program should contain following:
============================================================================
-----------------------------------------------------
Task # 1:-
Task # 2:-
Task # 3:-
E] calculate total_bill
============================================================================
**Encapsulation**
----------------------------------------------------------------------------
============================================================================
** Inheritance - Method Overriding **
create a class Account [acc-no, name, balance] which having deposite() and withdraw() method
> print the 2 details of Saving Account holder and Current Account holder .
----------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
Write necessary member functions to read and display the details of ‘n’ customers.
----------------------------------------------------------------------------
----------------------------------------------------------------------------
use extra details in subclasses and methods, which will insert and display a
records of all.
A] insert 5 Employee records
----------------------------------------------------------------------------
Define an Furniture class (Type, cost), create 3 subclasses from Furniture as Chair ,
Table and Sofa. use extra details in subclasses and methods, which will return a records of Chair ,
===============================================================================
[ ] ------- abstraction-----
----------------------------------------------------------------------------------------------------
Define an abstract class Person having (id, name,age)with having getSalary() abstract method
. Write a class Manager which extends from Person the getSalary() method,
dispaly the salary of Employee and manager by adding Different HRA and DA.
Create a interface Shape which consists abstract method area () and volume ().
Create three subclasses Rectangle, Circle and Triangle and calculate area and volume of it.
Define an abstract class Phone class (modelNo,model_name,cost) and abstract method as doCall(),
use extra details in subclasses and methods, which will return a records of Smartphone , Mobile and
Landline.
Write a abstract class Manager, having attributes and abstract and non-abstract methods,
create Employee class from Manager with suitable attributes and method,
which returns salary withdrawn by a particular employee, daily report, task submisstion .
==================================================================================
-----Interface-------
We have all come across ATMs in our cities and it is built on Java.
This complex project consists of five different classes and is a console-based application.
When the system starts the user is prompted with user id and user pin.
Transactions History
Withdraw
Deposit
Transfer
Quit
===============================================================================
** Collection **
------------------------------------------
#1
---------------------------------------------------------------------
E] print only those having role is "Developer" and salary is above 20000
---------------------------------------------------------------------------------------------------------------
Q.Write a java program to read n Students names from user, store them into the ArrayList collection.
Display the names in Ascending order.
Q.Write a java program to read n String names from user, store them into the ArrayList collection.
And iterate it .
----------------------------------------------------------------------------------------------------------
Q Write a program which perform two task at a time for addition of two nos and subtraction of two
nos using multithreading program
Write a program which perform two task at a time for sum of 1 to 10 nos and sum of 1 to 10 nos
Write a program which perform two task at concurrently using join() in multithreading
Write a thread program for print the current thread name by set them manually.
---------------------------------------------------------------------------------------------------
** Database Task #1
F] print only those having role is "Developer" and salary is above 20000