Core-Java-Interview-Question

1) What is Java? 

2) List the features of Java Programming language. 

3) What do you understand by Java virtual machine? 

4) What is the difference between JDK, JRE, and JVM? 

5) How many types of memory areas are allocated by JVM? 

6) What is JIT compiler? 

7) What is classloader? 

8) What if I write static public void instead of public static void? 

10) What are the various access specifiers in Java? 

11) What are the advantages of Packages in Java? 

12) What is object-oriented paradigm? 

13) What is an object? 

14) What are the differences between the constructors and methods? 

15) What is the static method? 

16) Difference between static and final 

17) Can we override the static methods?

18) What is the static block?

19) Can we execute a program without main() method?

20) Can we declare the static variables and methods in an abstract class?

21) What is this keyword in java?

22) What are the main uses of this keyword? 

23) Can we assign the reference to this variable?

24) Can this keyword be used to refer static members?

25) How can constructor chaining be done using this keyword?

26) What are the advantages of passing this into a method instead of the current class object itself?

27) Which class is the superclass for all the classes?

28) Why is multiple inheritance not supported in java?

29) What is aggregation? 30) What is composition?

31) What is super in java?

32) How can constructor chaining be done by using the super keyword?

33) What are the main uses of the super keyword?

34) What are the differences between this and super keyword?

35) Can you use this() and super() both in a constructor?

36) What is object cloning?

37) What is method overloading?

38) Why is method overloading not possible by changing the return type in java?

39) Can we overload the methods by making them static?

40) Difference between method Overloading and Overriding ?

1 comment: