JAVA PART 2 - Shambhu Patil
JAVA PART 2 - Shambhu Patil
Shambhugouda Patil
Test Yantra Software Solutions
Bengaluru, Karnataka
CONSTRUCTOR
============================================
ENCAPSULATION
==================================================
1.What is Encapsulation
2.How to achieve encapsulation?
3.What is the advantage of Encapsulation
4.What is Data Hiding?
5.How to achieve Data Hiding?
6.Explain about private ?
7.What is the use of Getter and Setter method ?
8.What are the advantages of Data Hiding?
9.WAJP to achieve Data Hiding.
10.Explain any one real time example for encapsulation
INHERITANCE
=================================================
POLYMORPHISM
===================================================
ABSTRACTION
====================================================
1.What is abstraction?
2.How to achieve abstraction?
3.To achieve abstraction which are the concepts we are using ?
4.What is abstract method? What is the syntax to create abstract method
5.What is concrete method?
6.What is abstract class?
7.What is concrete class?
8.Can we able to use abstract keyword for variables?
9.Why we go for Interface?
10.Explain any one real time example for Abstraction
11.What is an interface?
12.Can we able to create object for a interface?
13.Can we able to create a constructor inside the interface?
14.Can we able to create static methods inside the interface?
15.WAJP to achieve multiple inheritance .
16.Can we able to create concrete non static method inside the interface?
17.Can we able to create multi line initializers inside the interface.
18.Explain about types of interface.
19.Explain about abstract ?
PACKAGES
=================================================
1.What is package?
2.How many types of packages we have? Which are those?
3.How to access built-in packages?
4.Is it necessary to import java.lang package?
5.Explain Java.lang.Math ?
6.Can we able to create one package inside the another package
ACCESS MODIFIERS
===================================================
For Queries :
============