Try to solve this ::
1.What are the oops concepts?
2.What is inheritance?
3.Different types of inheritance
4.What is encapsulation?
5.What is tightly encapsulation and loosely encapsulation?
6.What is data hiding?
7.What are different types of polymorphism?
8.What is Composition and Aggregation?
9.What is cohesion?
10.What is interface?
11.What is abstract class?
12.What is the difference between interface and abstract class?
13.When we will choose abstract class?
14.Is there any possibility to write method implementation inside class?
15.Is there any possibility to write method implementation inside interface?
16.Is there any possibility to write class inside class?
17.If we declare class inside interface, is there any possibility to implement function in it?
18.If there is a chance to implement function inside inner class of interface how to call it?
19.What are the default modifiers for methods inside interface?
20.Is there any possibility to declare variables inside interface, and how to declare?
21.What are the default modifiers of a variable which present inside interface?
22.Is there any possibility to declare variable with private modifier which present in interface ?
23.Is there any possibility to declare variable with protected modifier which present in interface ?
24.Is there any possibility to declare variable with public modifier which present in interface ?
25.Is there any possibility to declare variable with static modifier which present in interface ?
26.Is there any possibility to declare variable with strictfp modifier which present in interface ?
27.Is there any possibility to declare variable with native modifier which present in interface ?
28.Is there any possibility to declare variable with synchronized modifier which present in interface ?
29.Is there any possibility to declare variable with volatile modifier which present in interface ?
30.Is there any possibility to declare variable with final modifier which present in interface ?
31.Is there any possibility to declare variable with transient modifier which present in interface ?
32.Is it manidatory to initialize the variable which presents in the interface?
33.There are two interfaces A and B, I like to get the feature of interface A to interface B what the keyword you will use?
34.There are two classes A and B, I like to get the feature of class A to class B what the keyword you will use?
35.There is one interface A and one class B, I like to get the feature of interface A to class B what the keyword you will use?
36. There is one interface A having method m1() declaration in the following manner
interface A
{
void m1();
}
I like to override the m1() in interface A from class B in the following manner is that valid or not,if not why it is not valid?
interface A
{
void m1();
}
class B implements A
{
void m1()
{
System.out.println("All the best");
}
}
37.There is one interface A and it contains function m1().I am implementing the features of interface A to my class B in the following manner is that
valid or not,if not why it is not valid?
interface A
{
void m1();
}
class B implements A
{
}
38.There is one interface A and it contains function m1().I am implementing the features of interface A to my class B in the following manner is that
valid or not,if not why it is not valid?
interface A
{
void m1();
}
abstract class B implements A
{
}
39.There is one interface A and it contains function m1().I am implementing the features of interface A to my class B in the following manner is that
valid or not,if not why it is not valid?
interface A
{
void m1();
}
class B implements A
{
public void m1()
{
System.out.println("Fads");
}
}
40.Is java suported multiple inheritance?
41.Why java classes not suported multiple inheritance?
42.What is constructor?