i
MindGate
Solutions
Filter interviews by
Oops concept in Java program refers to Object-Oriented Programming principles like inheritance, encapsulation, polymorphism, and abstraction.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation hides the internal state of an object and only exposes necessary methods to interact with it.
Polymorphism allows objects of different classes to be treated as objects of a common su...
Multi threading is the concurrent execution of multiple threads in a single program.
Allows multiple tasks to run concurrently
Improves performance and responsiveness
Enables efficient utilization of CPU resources
Can be used for parallel processing
Examples: running multiple calculations simultaneously, handling multiple client requests
The life cycle of a thread refers to its various states and transitions during its execution.
A thread starts in the new state when it is created.
It moves to the runnable state when it is ready to run but waiting for the CPU.
When the CPU starts executing the thread, it enters the running state.
A thread can temporarily move to the blocked or waiting state when it is waiting for a resource or signal.
A thread can be t...
JDBC steps to connect to a database
Load the JDBC driver class
Establish a connection to the database using the DriverManager class
Create a statement object to execute SQL queries
Execute the SQL queries and retrieve the results
Close the statement and connection objects
Collection is a group of objects while Map is a key-value pair data structure.
Collection is used to store and manipulate a group of objects.
Map is used to store and retrieve data based on key-value pairs.
Collection classes include List, Set, and Queue.
Map classes include HashMap, TreeMap, and LinkedHashMap.
Collections allow duplicate elements while Maps do not.
Example: Collection - List of names, Map - Student ID ...
Arrays are fixed in size and can store elements of the same type, while collections are dynamic and can store elements of different types.
Arrays have a fixed length, while collections can grow or shrink dynamically.
Arrays can only store elements of the same type, while collections can store elements of different types.
Arrays use indexed access for retrieval and modification, while collections provide various metho...
The 4 pillars of OOP are Abstraction, Encapsulation, Inheritance, and Polymorphism.
Abstraction: Hiding implementation details and showing only necessary information. Example: A car dashboard only shows necessary information like speed, fuel level, etc.
Encapsulation: Binding data and methods that manipulate the data together. Example: A bank account class with methods to deposit, withdraw, and check balance.
Inherit...
Java MCQ questions and code snippet
Oops concept in Java program refers to Object-Oriented Programming principles like inheritance, encapsulation, polymorphism, and abstraction.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation hides the internal state of an object and only exposes necessary methods to interact with it.
Polymorphism allows objects of different classes to be treated as objects of a common supercl...
I applied via Naukri.com and was interviewed in Oct 2021. There were 4 interview rounds.
I applied via Naukri.com and was interviewed before Aug 2020. There was 1 interview round.
Arrays are fixed in size and can store elements of the same type, while collections are dynamic and can store elements of different types.
Arrays have a fixed length, while collections can grow or shrink dynamically.
Arrays can only store elements of the same type, while collections can store elements of different types.
Arrays use indexed access for retrieval and modification, while collections provide various methods fo...
Collection is a group of objects while Map is a key-value pair data structure.
Collection is used to store and manipulate a group of objects.
Map is used to store and retrieve data based on key-value pairs.
Collection classes include List, Set, and Queue.
Map classes include HashMap, TreeMap, and LinkedHashMap.
Collections allow duplicate elements while Maps do not.
Example: Collection - List of names, Map - Student ID and c...
JDBC steps to connect to a database
Load the JDBC driver class
Establish a connection to the database using the DriverManager class
Create a statement object to execute SQL queries
Execute the SQL queries and retrieve the results
Close the statement and connection objects
Multi threading is the concurrent execution of multiple threads in a single program.
Allows multiple tasks to run concurrently
Improves performance and responsiveness
Enables efficient utilization of CPU resources
Can be used for parallel processing
Examples: running multiple calculations simultaneously, handling multiple client requests
The life cycle of a thread refers to its various states and transitions during its execution.
A thread starts in the new state when it is created.
It moves to the runnable state when it is ready to run but waiting for the CPU.
When the CPU starts executing the thread, it enters the running state.
A thread can temporarily move to the blocked or waiting state when it is waiting for a resource or signal.
A thread can be termin...
String is immutable because its value cannot be changed once it is created.
String objects are stored in the String pool, which is a part of the heap memory.
When a string is modified, a new string object is created with the modified value.
Immutable strings are thread-safe and can be safely shared among multiple threads.
String immutability allows for efficient memory utilization and optimization.
Top trending discussions
I applied via Naukri.com and was interviewed in Oct 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed before Apr 2020. There were 5 interview rounds.
posted on 30 Nov 2022
I applied via LinkedIn and was interviewed before Nov 2021. There were 3 interview rounds.
There are basic aptitude questions for freshers level
posted on 28 Aug 2022
I applied via Campus Placement and was interviewed in Feb 2022. There were 3 interview rounds.
It consists of two questions one is easy and another have medium level
The #define directive in C/C++ is used to create symbolic constants or macros for code readability and maintainability.
Defines constants: #define PI 3.14
Creates macros: #define SQUARE(x) ((x) * (x))
Improves code readability: #define MAX_BUFFER_SIZE 1024
Can lead to code bloat if overused: #define DEBUG_MODE
No type checking: #define is a preprocessor directive, not a variable
posted on 7 Sep 2022
I applied via LinkedIn and was interviewed in Aug 2022. There were 2 interview rounds.
40 question some were output question and many questions on Oops concept.
posted on 23 Aug 2024
I applied via Campus Placement and was interviewed in Jul 2024. There was 1 interview round.
Question based on array string linkedlist
posted on 10 May 2024
I applied via Naukri.com and was interviewed before May 2023. There was 1 interview round.
based on 1 interview experience
Software Developer
384
salaries
| ₹5.1 L/yr - ₹12.5 L/yr |
Software Analyst
191
salaries
| ₹3.4 L/yr - ₹8.4 L/yr |
Senior Software Developer
171
salaries
| ₹11.3 L/yr - ₹21 L/yr |
Senior Software Engineer
94
salaries
| ₹14.6 L/yr - ₹23 L/yr |
Senior Software Analyst
90
salaries
| ₹6 L/yr - ₹13.7 L/yr |
Tekwissen
Softenger
Capital Numbers Infotech
JK Tech