0% found this document useful (0 votes)
41 views4 pages

Inheritance, Scanner, Datatype, Access .Task

The document outlines key concepts of Java programming, including inheritance, access specifiers, data types, and the Scanner class. It lists theoretical questions related to these topics and provides programming exercises that involve creating classes and packages while demonstrating various types of inheritance. The exercises require the use of the Scanner class to gather user input for different scenarios.

Uploaded by

kirthu ale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views4 pages

Inheritance, Scanner, Datatype, Access .Task

The document outlines key concepts of Java programming, including inheritance, access specifiers, data types, and the Scanner class. It lists theoretical questions related to these topics and provides programming exercises that involve creating classes and packages while demonstrating various types of inheritance. The exercises require the use of the Scanner class to gather user input for different scenarios.

Uploaded by

kirthu ale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Day2_Inheritance,Scanner,Datatype,access specifier

DAY2:
-----
[Link]
[Link] specifiers
[Link] types
[Link] class

QUESTIONS(Theory)
--------------
[Link] is mean by inheritance?
[Link] of inheritance and explain all types?
[Link] is mean by multiple inheritance,why java won't support multiple inheritance?
[Link] between hybrid and hierachical inheritance?
[Link] is the use of access specifier and types?
[Link] between public and protected?
[Link] is default value of String?
[Link] is difference between primitive and non primitive datatypes?
[Link] is default package in java?
[Link] is the super class of all java class?
[Link] is use of scanner class?
[Link] are the different methods available in Scanner class?
[Link] class is under which package?
[Link] between next() and nextLine()?

QUESTIONS(Programs)
--------------------
QUESTION 1:
------------
Description: Using Scanner class get the below details
empId
empName
empEmail
empPhoneno
empSalary
empGender
empCity

QUESTION 2:
-------------
Description: Using Scanner class get the below details
studentId
studentName
Mark1
Mark2
Mark3
Mark4
Mark5
:Find the total and average of marks

QUESTION 3:
------------
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.

QUESTION 4:
------------
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.

QUESTION 5:
-------------
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.

QUESTION 6:
-----------
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 7:
-----------
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.

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

QUESTION 9:
------------
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 10:
-------------
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.

QUESTION 11:
------------
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.

You might also like