Thursday, January 14, 2021

Java Interview Questions (2021) - AapKiApniSchool

 Top 10 Core Java Interview Questions:


1. Write a program for singleton class in java.

2. Write a program in java for printing 1-10 numbers without loop.

3. What is the difference between jdk and jre in java.

4. Difference between String and String builder in java.

5. Difference between String builder and String buffer.

6. What is the use of final keyword in java?

7. What is the use of this keyword in java?

8. What is the use of static keyword in java?

9. Why main method is static in java?

10. Can we create main method without static keyword?


Note: Please let me know in comment box if you need answers for these questions.

3 comments:

Featured Post

Interface in java-AapKiApniSchool

Interface in java:  interface is a blueprint of class in java that is used to define contracts. It can contain static constant and abstract ...

Popular Posts