Posts

Showing posts from August, 2022

Collection Framework Interview Questions

Image
For the post of Senior Java Developer Collection framework questions are most common questions which are asked in interviews. In this post I am going to cover all important and most repeated collection framework questions. Lets get started.   Q. What is the Collection framework in Java? Collection Framework consist of classes and interface, which are used to store and manipulate the data in the form of objects. It provides various classes such as ArrayList, LinkedList, Vector, Stack, and HashSet, etc. and interfaces such as List, Queue, Set, etc. for this purpose. Collections are growable in nature. i.e. Based on our requirement we can increase or Decrease the size. Collections can hold both homogeneous & Heterogeneous elements. Every Collection class is implemented based on some standard data structure.   Q. Arrays Vs Collections? Arrays are always of fixed size, i.e., a user can not increase or decrease the length of the array      according to their requi...

Object Oriented Programming Concepts

Image
In this article I have tried to explain all important concepts of  Object Oriented Programming with respect to Interviews. I hope this will give you basic idea about OOP. What is Object Oriented Programming System? Object-Oriented Programming system is a programming paradigm in which software design involve around data, or objects, rather than functions and logic.  In OOP objects are data fields that have unique attributes and properties. OOP focuses on the objects that developers want to manipulate rather than the logic required to manipulate them.  Object-Oriented Programming system is well suited with large and complex software programs. What are the 4 Pillars of  OOP?  Abstraction Encapsulation Inheritance Polymorphism Explain Abstraction in JAVA. Data abstraction is one of the 4 pillars of OOP. It allows to hide unnecessary data from the user which reduces program complexity and efforts. In other words it displays only the necessary information...

Java Basic Interview Questions for freshers

I have shared 50 important JAVA interview questions for freshers. Questions marked with * are most repeated interview questions. JAVA Interviewers mostly ask these questions to JAVA freshers to evaluate their familiarity with JAVA language and OOP concepts. *Q1. What do you understand by Java virtual machine (JVM)? JVM  is a virtual machine that enables the computer to run the Java program. JVM acts like a run-time engine which calls the main method present in the Java code. JVM is the specification which must be implemented in the computer system. The Java code is compiled by JVM to be a Bytecode which is machine independent and close to the native code. Q2. What do you understand by Java Development Kit (JDK)? JDK  is an acronym for Java Development Kit. It is a software development environment which is used to develop Java applications. It contains JRE + development tools. JDK is an implementation of any one of the below given Java Platforms released by Or...