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.