Top Interview Questions On Java Programming Diploma Level MSBTE Computer Science & Engineering

Here we Go!..........

1. Who developed Java When and why was it developed?
Ans: Java is developed by James Gosling in 1991 and the reason why Java was developed? is there already C and C++ are available in Market, because Java is an advanced Level Programming language. also, Java is pure Object Oriented Programming Language. 

2. Is Java OpenSource?
Ans: No, but there is Open JDK(Java Development  Kit) the kit is Free On NOV 13,2006, Sun released much of Java as Free and Opensource Software.

3. What is Java Programming?
Ans: Java is a well known broadly useful programming dialect and processing stage. It is quick, dependable, and secure. As indicated by Oracle, the organization that claims Java, Java keeps running on 3 billion gadgets around the world.
(Java is nothing but the Computer Programming Language that is used to develop Software, Games)

4. Why Java is Strong, Secure?
Ans: With Java, we can develop a virus-free system, Java is secure because there is no explicit pointer and Java is run inside the JVM(Java Virtual Machine).

5. What is static keyword in Java and Why it is used?
Ans: Static means Common, it is used mainly for memory management   

6. What is the purpose of garbage collection in Java, and when is it used?
Ans: The purpose of garbage collection is to identify the object that is no longer used by a program, destroy that object and free up the memory.

7. What is the difference between an Interface and an Abstract class?
Ans: Abstract class can have an instance method that implements a default behavior. An Interface can only declare instance method but can't implement a default behavior.