Top Java Interview Questions and Answers – Set 2 1) What do JVM, JRE, and JDK stand for? - JVM stands for Java Virtual Machine. - JRE stands for Java Runtime Environment. - JDK stands for Java Development Kit. 2) Does Java use pointers? No, Java doesn’t use pointers. It has to...
An object is created using the ‘new’ keyword. For example: ClassName obj = new ClassName(); 6. What is Object Oriented Programming? Object-oriented programming or popularly known as OOPs is a programming model or approach where the programs are organized around objects rather than logic and ...
Java Collections Interview Questions Java Exception Interview Questions Here I am providing some of the important core java interview questions with answers that you should know. You can bookmark this post to brush up on your knowledge before heading for an interview. 1. Name some important feature...
JSP is an integral part of Java EE. If you are giving an interview for a web developer, then having good knowledge of JSP is very important. This post contains a list of 35 JSP interview questions with answers. Please make sure to bookmark it because I will be kept on adding more to...
12What is OOPS? OOP is the common abbreviation for Object-Oriented Programming. 13Describe the principles of OOPS. There are three main principals of oops which are called Polymorphism, Inheritance and Encapsulation. 14Explain the Encapsulation principle. ...
Java 8 Interview Coding Questions Java Collections Interview Questions Java Threads Interview Questions Java Exception Handling Interview Questions Java String Interview Questions Java Array Interview Questions Top 25 Simple Basic Java Interview Questions For Freshers Java Interview Questions On Nested Classes ...
Suggested Read: OOPs Interview Questions And Answers Basic OOPs Concepts with Examples The basic Java OOPs concepts in general includes, 1) Class The class is the first basic OOPs concepts, which is a group of the same entities. Class is a logical component and not a physical entity. For ex...
Java offers two different interfaces for sorting objects. These include - Comparable and comparator interfaces. While the comparable interface is used to order the objects of a class implementing it, the comparator interface orders the objects of two given different classes. ...
11. Can you write critical section code for singleton? This core Java question is followup of previous question and expecting candidate to write Java singleton using double checked locking. Remember to use volatile variable to make Singleton thread-safe. check 10 Interview questions on Singleton Pat...
programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. b) In procedural program, data is exposed to the whole program whereas in OOPs program, it is accessib...