التخطي إلى المحتوى الرئيسي

OOPS Interview Question in Java, TOP 20 Interview question of Java

 OOPS Interview Question in Java:-



OOP's is the most important topic of the interview, especially for JAVA.


I am providing some most important interview questions based on OOP'S.

1)   What is OOPS?

2)   Why we use OOP'S technique in programming?


3)  What is the full form of OOP'S?


4)  What is the definition of Object, Class depends on object or Object is depend on class?


5) What is the difference between Object and Instance(reference)?


6)  What is the Garbage collector in Java, how it works?


7)  What are the Access modifier(Access Control, Access Specifier) and non-access modifiers in Java?


8) What is an immutable object in Java?


9) What is Singleton class, Concreate class,  Inner class in Java?


10) What is the final class, the final method, and the final variable in Java?


11)  What is another way to protect class from an inheritance except for the final class?


12) What is init block, static block, and constructor, if all three present then what will be the execution process?


13)  What is the difference between abstract class and interface?


14)  what component can be defined under the interface?


15)  How to restrict the class to create only three objects?


16)  why Java does not support operator overloading?


17)  tell the name of five predefine final class?


18)  Java Support multiple inheritances or not?  if not support then why, if support then how?


19)  What is getInstance(), toString(), equals() in Java?


20)  What is data abstraction, how to implement it into the Java Program Code?


21)  What are the IS-A and HAS-A relationships in Java?


22)  What is Composition, Aggregation, and Association in Java?


23)  What is static binding and dynamic binding?


24)  What is a Generic class in Java?


25) What is Anonymous class and Anonymous Object in Java?


If you want to show MOCK Interview of Java then watch this video session:-














تعليقات

  1. Q:- What is oops?
    OOPS stands for Object oriented program structure.
    Procedural Programming is About Writing Procedures or methods that perform operations on the data, while object oriented programming is about creating object that contain both data and methods.

    ردحذف
  2. Q:- Why we use OOP'S technique in programming?

    It is used to create real world based application using dynamic memory allocation security,reusability and extend-ability features.

    ردحذف
  3. Q:- What is the full form of OOP'S?

    OOP'S full form is OBJECT ORIENTED PROGRAMMING STRUCTURES.

    ردحذف
  4. Q:-What is the definition of Object,Class depends on object or Object is depend on class?
    Object:- It is a real-world entity that has an identity,state and behavior.

    Example:- Electronics is the class Such as Latop,Mobiles,Televison,camera etc.

    ردحذف
  5. Q:- What is the difference between Object and Instance(reference)?

    An instance is a specific representation of an object.An object is a generic thing while an instance is a single object that has been created in memory.Usually an instance will have values assigned to it's properties that differentiates it from other instances of the type of object.

    ردحذف
  6. Q:- What is the Garbage collector in Java, how it works?

    Garbage collector is the process by which programs perform automatic memory management. java program compile to byte code that can be run on a java virtual machine or JVM for short when java program run on the JVM. the garbage collector finds these unused objects and deletes them to free up memory.

    Java garbage collector is an automatic process. the programmer does not need to explicity mark object to be delete.the garbage collection implemention lives in the jvm.

    ردحذف
  7. Q:-What are the Access modifier(Access Control, Access Specifier) and non-access modifiers in Java?

    There are two types of modifiers in java access modifier and non access modifiers
    The access modifire in java specifies the accessibility or scope of a feilds, constructorpr class. we can change the access level of field,constuctor,methods,and class by applying the access modifier on it.
    There are four types of java access modifier private,default,protected and public.

    There are many non-access modifiers,such as static,abstract,synchronized,native,volatile,transient,etc.

    ردحذف
  8. Q:- What is an immutable object in Java?
    An immutable object is an that will not change its internal state after creation.
    Immutable object are very useful in multithreaded application because they can be shared between threads with out sychronization.

    ردحذف
  9. Q:- What is Singleton class, Concreate class, Inner class in Java?
    Concreate class:- It is the class which is used to implement the functionality of abstract class a concreate class.
    It is similar to a normal class but it will be associated with the interface method and abstract class method.
    Inner class:- Using this concept we will create class inside class.It is also called nested class.

    ردحذف

إرسال تعليق

POST Answer of Questions and ASK to Doubt

المشاركات الشائعة من هذه المدونة

DSA in C# | Data Structure and Algorithm using C#

  DSA in C# |  Data Structure and Algorithm using C#: Lecture 1: Introduction to Data Structures and Algorithms (1 Hour) 1.1 What are Data Structures? Data Structures are ways to store and organize data so it can be used efficiently. Think of data structures as containers that hold data in a specific format. Types of Data Structures: Primitive Data Structures : These are basic structures built into the language. Example: int , float , char , bool in C#. Example : csharp int age = 25;  // 'age' stores an integer value. bool isStudent = true;  // 'isStudent' stores a boolean value. Non-Primitive Data Structures : These are more complex and are built using primitive types. They are divided into: Linear : Arrays, Lists, Queues, Stacks (data is arranged in a sequence). Non-Linear : Trees, Graphs (data is connected in more complex ways). Example : // Array is a simple linear data structure int[] number...

JSP Page design using Internal CSS

  JSP is used to design the user interface of an application, CSS is used to provide set of properties. Jsp provide proper page template to create user interface of dynamic web application. We can write CSS using three different ways 1)  inline CSS:-   we will write CSS tag under HTML elements <div style="width:200px; height:100px; background-color:green;"></div> 2)  Internal CSS:-  we will write CSS under <style> block. <style type="text/css"> #abc { width:200px;  height:100px;  background-color:green; } </style> <div id="abc"></div> 3) External CSS:-  we will write CSS to create a separate file and link it into HTML Web pages. create a separate file and named it style.css #abc { width:200px;  height:100px;  background-color:green; } go into Jsp page and link style.css <link href="style.css"  type="text/css" rel="stylesheet"   /> <div id="abc"> </div> Exam...

Top 50 Most Asked MERN Stack Interview Questions and Answers for 2025

 Top 50 Most Asked MERN Stack Interview Questions and Answers for 2025 Now a days most of the IT Company asked NODE JS Question mostly in interview. I am creating this article to provide help to all MERN Stack developer , who is in doubt that which type of question can be asked in MERN Stack  then they can learn from this article. I am Shiva Gautam,  I have 15 Years of experience in Multiple IT Technology, I am Founder of Shiva Concept Solution Best Programming Institute with 100% Job placement guarantee. for more information visit  Shiva Concept Solution 1. What is the MERN Stack? Answer : MERN Stack is a full-stack JavaScript framework using MongoDB (database), Express.js (backend framework), React (frontend library), and Node.js (server runtime). It’s popular for building fast, scalable web apps with one language—JavaScript. 2. What is MongoDB, and why use it in MERN? Answer : MongoDB is a NoSQL database that stores data in flexible, JSON-like documents. It...