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

Day 02 Java Task

NA
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 views8 pages

Day 02 Java Task

NA
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

Courses Java/Selenium/Python/Javascript

Offered here: Full-Stack Developer/API/Appium

For Enquiry Call Us: 8939982246


Trainers – Ramsarath,Xavier,Palanivel
Day -2 Inheritance,Scanner,Datatype,access specifier
DAY-2:
1. Inheritance
2. Access specifiers
3. Data types
4. Scanner class
QUESTIONS (Theory)
1. What is mean by inheritance?
2. Types of inheritance and explain all types?
3. What is mean by multiple inheritance,why java won't support multiple
inheritance?
4. Difference between hybrid and hierachical inheritance?
[Link] is the use of access specifier and types?
6. Difference between public and protected?
7. What is mean by Wrapper class?
8. What is default value of String?
9. What is difference between primitive and non primitive datatypes?
10. What is default package in java?
11. What is the super class of all java class?
12. What is use of scanner class?
13. What are the different methods available in Scanner class?
14. Scanner class is under which package?
15. Difference between next() and nextLine()?

Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium

For Enquiry Call Us: 8939982246


Trainers – Ramsarath,Xavier,Palanivel
Programs
QUESTION 1:
package name: [Link]
Project name: LanguageDetails
Class name : Languageclass
Methods : alllanguage

package name : [Link]


Project name : LanguageDetails
Class name : Tamil
Methods : tamillanguage

package name : [Link]


Project name : LanguageDetails
Class name : English
Methods : englishlanguage

package name: [Link]


Project name: LanguageDetails
Class name : Telgu
Methods : telgulanguage

Description:
create above 4 packages and call all your class methods into the
Languageclass using multilevel inheritance.

Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium

For Enquiry Call Us: 8939982246


Trainers – Ramsarath,Xavier,Palanivel
QUESTION 2:
package name: [Link]
Project name : SouthIndia
Class name : India
Methods : india

package name: [Link]


Project name : SouthIndia
Class name : TamiladuN
Methods : tamillanguage

package name: [Link]


Project name : SouthIndia
Class name : kerala
Methods : malayalam

package name: [Link]


Project name : SouthIndia
Class name : AndhraPradesh
Methods : telugu

Description:
Create above 4 packages and call all your class methods into the India
using multilevel inheritance.

Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium

For Enquiry Call Us: 8939982246


Trainers – Ramsarath,Xavier,Palanivel
QUESTION 3:
Project :CollegeInformation
Package :[Link]
Class :College
Methods :collegeName(),collegeCode(),collegeRank()

Class :Student
Methods :studentName(),studentDept(),studentId()

Class :Hostel
Methods :HostelName()

Class :dept
Methods :deptName()

Description:
Create above 4 class and call all your class methods into the Student
using multilevel inheritance.

Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium

For Enquiry Call Us: 8939982246


Trainers – Ramsarath,Xavier,Palanivel
QUESTION 4:
Project :COmputer
Class :Computer
Methods :computerModel()

Class :Desktop
Methods :desktopSize()

Description:
Create above 2 class and call all your class methods into the Desktop
using single inheritance.

QUESTION 5:

Project :LanguageDetails
Package :[Link]
Class :LanguageInfo
Methods :tamilLanguage(),englishLanguage(),hindiLanguage()

Class :StateDetails
Methods :southIndia(),northIndia()

Description:
Create above 2 class and call all your class methods into the
LanguageInfo using single inheritance.

Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium

For Enquiry Call Us: 8939982246


Trainers – Ramsarath,Xavier,Palanivel

QUESTION 6:
Project :BankDetails
Package :[Link]
Class :BankInfo
Methods :saving(),fixed()

Class :AxisBank
Methods :deposit()

Description:
create above 2 class and call all your class methods into the BankInfo
using single inheritance.
QUESTION 7:
Project :CompanyDetails
Package :[Link]
Class :Company
Methods :companyName()

Package :[Link]
Class :Client
Methods :clientName()
Description:
Create above 2 packages and call all your class methods into the
Comapany using single inheritance.

Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium

For Enquiry Call Us: 8939982246


Trainers – Ramsarath,Xavier,Palanivel
QUESTION 8:
Project :EducationInformation
Package :[Link]
Class :Education
Methods :ug(),pg()
Class :Arts
Methods :bsc(),bEd(),bA(),bBA()

Class :Engineering
Methods :bE(),bTech()

Class :Medicine
Methods :physiyo(),dental(),mbbs()

Description:
Create above 4 class and call all your class methods into the Education
using multilevel inheritance.
QUESTION 9:
Description: Using Scanner class get the below details
empId
empName
empEmail
empPhoneno
empSalary
empGender
empCity
Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us
Courses Java/Selenium/Python/Javascript
Offered here: Full-Stack Developer/API/Appium

For Enquiry Call Us: 8939982246


Trainers – Ramsarath,Xavier,Palanivel
QUESTION 10:
Description: Using Scanner class get the below details
studentId
studentName
Mark1
Mark2
Mark3
Mark4
Mark5
:Find the total and average of marks

QUESTION 11:
Description: Using Scanner class get the below details
StudentId
StudentName
StudentEmail
StudentPhoneno
StudentDept
StudentGender
StudentCity

Location : 51-A, 2nd floor, Velachery Rd, Dhadeswaram Nagar, Velachery, Chennai, Tamil Nadu 600042
Follow us On: greens_technologies_chennai Scan Here
greens_technologies_chennai To Reach Us

You might also like