Core Java Test Paper Day 2
Core Java Test Paper Day 2
Data Types
Description:
create above 4 packages and call all your class methods into the Languageclass using multilevel
inheritance.
Description:
create above 4 packages and call all your class methods into the India using multilevel inheritance.
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.
Class : Desktop
Methods : desktopSize()
Description:
create above 2 class and call all your class methods into the Desktop using single inheritance.
Q7. Project :LanguageDetails
Package :org.lang
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.
Q8. Description: Using Scanner class get the below details
StudentId
StudentName
StudentEmail
StudentPhoneno
StudentDept
StudentGender
StudentCity
Q9. Project :BankDetails
Package :org.bank
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.
Q10. Project :CompanyDetails
Package :org.company
Class :Company
Methods :companyName()
Package :org.client
Class :Client
Methods :clientName()
Description:
create above 2 packages and call all your class methods into the Comapany using single inheritance.
Q11. Project :EducationInformation
Package :org.edu
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.