Java Unit Wise List2
Java Unit Wise List2
Java Unit Wise List2
Unit - 2
Unit : 2 : Inheritance and sub classing in Java and packages and use of access specifiers Sr. No 2.1 Topic What is inheritance y Definition : Inheritance y Single Inheritance Inheritance in Java y Defining Subclasses y Inheritance Basics y Types of Inheritance Simple Inheritance Multilevel Inheritance Method Overriding Method Overloading Vs Uses of y y y 2.6 2.7 2.8 Method Overriding Page No. 1 to 15
2.2
1 to 15
15 to 19 15 to 19
super
keyword
Variable Shadowing and the use of super keyword Use of super to call super class constructor Method overriding and the use of super keyword 15 to 19 15 to 19 19 to 21
When Constructors Are Called ? Dynamic Method and Variable Binding (Dispatch) Using final with variables, methods and classes OR Uses of y y y
final
keyword
2.9
abstract
keyword 22 to 24
2.10
Interfaces y Defining interfaces y Implementing interfaces y Variables in Interfaces y Single Inheritance of Interfaces ( Interfaces Can Be Extended )
Prepared By:- Paresh Tanna
Unit - 2
y y 2.11 2.12
Abstract classes Vs interfaces Package y Defining package y Importing Packages y Use of static imports y Use of CLASSPATH for class loading y Access protection / Access Specifiers Access specifiers for members of a package Access specifiers for members of a class Access specifiers for overriding methods String Class y String class constructors y String class methods StringBuffer & StringBuilder Classes y StringBuffer class constructors y StringBuffer class methods Math Class y Math class constants y Math class methods Wrapper Classes y Byte y Short y Integer y Long y Float y Double y Boolean y Character Object Class y Object Class as a super class of all classes y Methods inherited from the Object class Comparable Interface Comparator Interface Using the Java APIs
Prepared By:- Paresh Tanna
2.13
27 to 34
2.14
27 to 34
2.15
27 to 34
2.16
27 to 34
2.17
27 to 34
27 to 34 27 to 34 27 to 34
2