Filter interviews by
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 8 Nov 2024
I applied via Naukri.com
I was interviewed 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
Interface is a contract that defines the methods a class must implement, while an abstract class can have both implemented and abstract methods.
Interface can only have abstract methods and cannot have any implementation, while abstract class can have both abstract and implemented methods.
A class can implement multiple interfaces but can only inherit from one abstract class.
Interfaces are used to achieve multiple inheri...
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 Campus Placement and was interviewed in Sep 2024. There were 3 interview rounds.
Aptitude questions with some basic coding questions
They have given 3 coding questions and some pseudo codings
I applied via Recruitment Consulltant and was interviewed in May 2024. There were 3 interview rounds.
Logical reasoning and Aptitude
Functions with Pointers and strings concepts
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.
posted on 10 Feb 2025
posted on 24 Sep 2024
I applied via Campus Placement
Easy aptitude, 30 min with 20 question
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
Software Engineer
44
salaries
| ₹2.8 L/yr - ₹10.9 L/yr |
Software Developer
36
salaries
| ₹1.8 L/yr - ₹8.7 L/yr |
Senior Software Engineer
32
salaries
| ₹4.6 L/yr - ₹11.6 L/yr |
Java Developer
16
salaries
| ₹2.9 L/yr - ₹8 L/yr |
HR Executive
15
salaries
| ₹1.2 L/yr - ₹5 L/yr |
Infosys
TCS
Wipro
HCLTech