Core Java Interview Questions
Q1. Who is the father of Java?
The father of java is James Gosling.
Q2. What is Polymorphism?
Polymorphism is the ability to have many forms.
Q3. What is java?
Java is a high-level programming language and is platform-independent.
Q4. What are the Java IDE’s?a
Eclipse and NetBeans are the IDE’s of JAVA.
Q5. Which type of application we can develop using java?
Desktop applications and Web applications.
Q6. What value is stored in i at the end of this loop?
for(int i=1;i<=10;i++)
The program control will exit the for loop only when the condition specified in the for loop has failed. Hence, the value of i will be 11.
Q7. What is meant by Local variables?
Local variables are a variable that’s declared within the body of a method. Then you can use the variable only within that method. Other methods in the class aren’t even aware that the variable exists.
Q8. What is meant by Global Variables?
Global variable is one that is accessible to all parts of a program and is usually declared as part of the first lines of code.
Q9. What is an Object?
An instance of a class is called an object. Objects have states and behaviors.
Q10. Who executes the byte code in java?
JVM executes the byte code in java.
Q11. Which edition of java is used for developing web applications?
J2EE is used for developing web applications.