Filter interviews by
To count duplicate names in SQL, use the GROUP BY clause with the COUNT function.
Use GROUP BY clause to group the names together
Use COUNT function to count the number of occurrences
Use HAVING clause to filter out names with count less than 2
A program to create custom exceptions in Java.
Create a class that extends Exception or RuntimeException
Add constructors to the custom exception class
Throw the custom exception in the code when needed
Singleton is a design pattern that restricts the instantiation of a class to one object.
To create a singleton class, make the constructor private, create a static method to get the instance of the class, and create a private static variable to hold the instance.
Benefits of singleton include ensuring only one instance of the class exists, providing a global point of access to the instance, and reducing the number o...
Immutable objects are those whose state cannot be changed after creation.
Use final keyword to make class immutable
Make all fields private and final
Do not provide setter methods
If a field is mutable, return a copy of it instead of the original object
Examples: String, Integer, LocalDate
Microservices communicate through lightweight protocols like HTTP/REST or messaging systems like RabbitMQ.
Microservices can communicate through synchronous protocols like HTTP/REST, where one service sends a request to another service and waits for a response.
Microservices can also communicate through asynchronous messaging systems like RabbitMQ, where one service publishes a message to a queue and other services ...
The @Component annotation is used to mark a class as a bean, while @Configuration is used to define a configuration class.
The @Component annotation is used to auto-detect and auto-configure beans using classpath scanning.
@Configuration classes are used to define beans and their dependencies explicitly.
A @Configuration class can contain @Bean methods that return bean instances.
A @Component class can be used as a be...
Volatile is a keyword in Java used to indicate that a variable's value may be modified by multiple threads.
Volatile variables are not cached in thread's local memory
Changes made to volatile variables are immediately visible to other threads
Volatile keyword is used to ensure visibility and ordering of variables in multithreaded environment
Example: volatile int count = 0;
Java 1.8 introduced lambda expressions, default methods, and functional interfaces.
Lambda expressions allow functional programming in Java.
Default methods allow adding new methods to interfaces without breaking existing implementations.
Functional interfaces are interfaces with a single abstract method, used for lambda expressions.
Stream API for processing collections and arrays.
Date and Time API for easier handlin...
I applied via Naukri.com and was interviewed in Jun 2021. There were 4 interview rounds.
Immutable objects are those whose state cannot be changed after creation.
Use final keyword to make class immutable
Make all fields private and final
Do not provide setter methods
If a field is mutable, return a copy of it instead of the original object
Examples: String, Integer, LocalDate
Singleton is a design pattern that restricts the instantiation of a class to one object.
To create a singleton class, make the constructor private, create a static method to get the instance of the class, and create a private static variable to hold the instance.
Benefits of singleton include ensuring only one instance of the class exists, providing a global point of access to the instance, and reducing the number of obj...
Volatile is a keyword in Java used to indicate that a variable's value may be modified by multiple threads.
Volatile variables are not cached in thread's local memory
Changes made to volatile variables are immediately visible to other threads
Volatile keyword is used to ensure visibility and ordering of variables in multithreaded environment
Example: volatile int count = 0;
A program to create custom exceptions in Java.
Create a class that extends Exception or RuntimeException
Add constructors to the custom exception class
Throw the custom exception in the code when needed
To count duplicate names in SQL, use the GROUP BY clause with the COUNT function.
Use GROUP BY clause to group the names together
Use COUNT function to count the number of occurrences
Use HAVING clause to filter out names with count less than 2
Microservices communicate through lightweight protocols like HTTP/REST or messaging systems like RabbitMQ.
Microservices can communicate through synchronous protocols like HTTP/REST, where one service sends a request to another service and waits for a response.
Microservices can also communicate through asynchronous messaging systems like RabbitMQ, where one service publishes a message to a queue and other services consu...
The @Component annotation is used to mark a class as a bean, while @Configuration is used to define a configuration class.
The @Component annotation is used to auto-detect and auto-configure beans using classpath scanning.
@Configuration classes are used to define beans and their dependencies explicitly.
A @Configuration class can contain @Bean methods that return bean instances.
A @Component class can be used as a bean in...
Java 1.8 introduced lambda expressions, default methods, and functional interfaces.
Lambda expressions allow functional programming in Java.
Default methods allow adding new methods to interfaces without breaking existing implementations.
Functional interfaces are interfaces with a single abstract method, used for lambda expressions.
Stream API for processing collections and arrays.
Date and Time API for easier handling of ...
Top trending discussions
posted on 9 May 2017
I appeared for an interview before May 2016.
I appeared for an interview before Mar 2024, where I was asked the following questions.
I applied via Walk-in and was interviewed in Jul 2024. There were 2 interview rounds.
Give 10 questions from node js backend
package.json is a file used in Node.js projects to manage dependencies, scripts, and metadata.
It is a JSON file that contains information about the project, such as name, version, dependencies, and scripts.
It is used to manage project dependencies by listing them in the 'dependencies' and 'devDependencies' fields.
It allows developers to define scripts for tasks like building, testing, and running the project.
Example: {...
Components in Angular are building blocks of an application. Data can be shared between components using input properties and output events.
Components in Angular are reusable, self-contained units of code that define a part of the user interface.
Data can be shared to a component using input properties, where data is passed from the parent component to the child component.
Data can also be shared from a child component t...
=== is strict equality operator, while == is loose equality operator. === is commonly used in real-time projects for accurate comparisons.
=== is a strict equality operator that checks both value and type of operands
== is a loose equality operator that only checks the value of operands
=== is commonly used in real-time projects to ensure accurate comparisons and prevent unexpected type coercion issues
Arrow function syntax in JavaScript
Arrow functions are concise syntax for writing function expressions in JavaScript
They have a shorter syntax compared to traditional function expressions
They do not have their own 'this', 'arguments', 'super', or 'new.target' keywords
Arrow functions are concise syntax for writing function expressions, while anonymous functions do not have a name.
Arrow functions have a shorter syntax compared to anonymous functions.
Arrow functions do not have their own 'this' keyword, while anonymous functions do.
Arrow functions do not have 'arguments' object, while anonymous functions do.
Arrow functions are not hoisted, while anonymous functions are hoisted.
I applied via LinkedIn and was interviewed in Mar 2024. There was 1 interview round.
The process for Software Development Engineer involves planning, designing, coding, testing, and deploying software solutions.
Gather requirements from stakeholders
Create a design based on requirements
Write code to implement the design
Test the software for bugs and issues
Deploy the software for users to use
Iterate on feedback and make improvements
I applied via Recruitment Consulltant and was interviewed in May 2024. There were 3 interview rounds.
It is easy to solve the Aptitude question and some identifying outputs of program.
A class is a blueprint for creating objects in object-oriented programming.
A class defines the properties and behaviors of objects.
An object is an instance of a class.
Example: Class 'Car' can have properties like 'color' and 'model', and behaviors like 'drive' and 'stop'.
Swap two numbers without using temp variable and reverse a string without using built-in functions.
To swap two numbers without using temp variable, use bitwise XOR operation.
To reverse a string without using built-in functions, use two pointers approach.
Example for swapping numbers: a = a ^ b; b = a ^ b; a = a ^ b;
Example for reversing a string: use two pointers to swap characters from start and end of the string.
Now, I am preparing for the third round.
So, I don't know the Coding Question.
I appeared for an interview in May 2025, where I was asked the following questions.
Java is a versatile, object-oriented programming language designed for portability across platforms and ease of use.
Object-Oriented: Java uses objects to represent data and methods, promoting code reusability. Example: Classes and objects.
Platform-Independent: Java code is compiled into bytecode, which can run on any device with a Java Virtual Machine (JVM).
Rich API: Java provides a comprehensive set of libraries for t...
The JVM enables Java applications to run on any device by providing an environment for executing Java bytecode.
Platform Independence: JVM allows Java programs to run on any operating system without modification.
Bytecode Execution: It interprets or compiles Java bytecode into machine code for execution.
Memory Management: JVM handles memory allocation and garbage collection automatically.
Security: It provides a secure ex...
OOP is a programming paradigm based on objects, encapsulating data and behavior, promoting code reusability and modularity.
Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).
Inheritance: Mechanism to create a new class based on an existing class, inheriting its properties (e.g., a 'Dog' class inheriting from an 'Animal' class).
Polymorphism: Ability to present the same inte...
Variables can be categorized based on their scope, lifetime, and data type, impacting how they are used in programming.
1. Local Variables: Defined within a function or block, e.g., 'int x = 10;' inside a function.
2. Global Variables: Accessible throughout the program, e.g., 'int count;' defined outside any function.
3. Static Variables: Retain their value between function calls, e.g., 'static int counter = 0;' in a func...
An interface defines a contract for classes, specifying methods and properties without implementing them.
An interface can contain method signatures and properties but no implementation.
Classes that implement an interface must provide concrete implementations for all its members.
Interfaces support multiple inheritance, allowing a class to implement multiple interfaces.
Example: In Java, 'Runnable' is an interface that re...
posted on 8 Nov 2024
I applied via Naukri.com
I appeared for an interview in Nov 2024.
The aptitude test evaluates problem-solving, coding skills, and logical reasoning, offering a fair challenge to showcase technical expertise.
I address conflicts in team projects by promoting open communication, active listening, and seeking compromise.
Encourage open communication among team members to address conflicts early on
Practice active listening to understand all perspectives and concerns
Seek compromise and find common ground to resolve conflicts effectively
I applied via LinkedIn and was interviewed before Dec 2023. There were 2 interview rounds.
They just gave me an assessment with a few questions to test my subject knowledge
5-10 Yrs
Not Disclosed
Software Engineer
43
salaries
| ₹2.6 L/yr - ₹10.9 L/yr |
Software Developer
39
salaries
| ₹1.8 L/yr - ₹11.1 L/yr |
Senior Software Engineer
30
salaries
| ₹4.6 L/yr - ₹12 L/yr |
DOT NET Developer
22
salaries
| ₹1 L/yr - ₹5 L/yr |
HR Executive
15
salaries
| ₹1.2 L/yr - ₹5 L/yr |
Accel Frontline
Apmosys Technologies
Pitney Bowes
DynPro