Filter interviews by
You can sort a class object by implementing the Comparable interface and overriding the compareTo method.
Implement the Comparable interface in the class and override the compareTo method to compare objects based on roll number.
Use Collections.sort() method to sort the list of objects based on roll number.
Example: class Student implements Comparable<Student> { public int compareTo(Student s) { return this.rol...
A constructor is a special method in Java used to initialize objects when they are created.
Constructors have the same name as the class they belong to.
They do not have a return type, not even void.
Constructors can be overloaded, allowing multiple ways to initialize an object.
Example: public class Dog { Dog() { } Dog(String name) { this.name = name; } }
If no constructor is defined, Java provides a default construct...
Spring Boot annotations simplify configuration and enhance functionality in Java applications, promoting ease of development.
@SpringBootApplication: Combines @Configuration, @EnableAutoConfiguration, and @ComponentScan.
@RestController: Combines @Controller and @ResponseBody for RESTful web services.
@Autowired: Automatically injects dependencies, reducing boilerplate code.
@RequestMapping: Maps HTTP requests to spec...
PostgreSQL and Oracle SQL differ in terms of licensing, features, performance, and cost.
PostgreSQL is open-source while Oracle SQL is proprietary.
PostgreSQL is known for its extensibility and support for advanced features like JSON data types, while Oracle SQL is known for its robustness and scalability.
PostgreSQL is generally considered more cost-effective for small to medium-sized projects, while Oracle SQL is p...
Functional interfaces in Java are interfaces with a single abstract method, used for lambda expressions and method references.
Functional interfaces have only one abstract method, but can have multiple default or static methods.
Examples include java.lang.Runnable, java.util.Comparator, and java.util.function.Predicate.
Functional interfaces can be used with lambda expressions and method references for concise code.
Streams in Java are sequences of elements that support functional-style operations.
Streams are used to process collections of objects in a functional way.
They allow for concise and readable code by enabling operations like filter, map, reduce, etc.
Example: List<String> names = Arrays.asList("Alice", "Bob", "Charlie"); Stream<String> stream = names.stream();
I applied via Recruitment Consulltant and was interviewed in Sep 2024. There was 1 interview round.
Functional interfaces in Java are interfaces with a single abstract method, used for lambda expressions and method references.
Functional interfaces have only one abstract method, but can have multiple default or static methods.
Examples include java.lang.Runnable, java.util.Comparator, and java.util.function.Predicate.
Functional interfaces can be used with lambda expressions and method references for concise code.
Streams in Java are sequences of elements that support functional-style operations.
Streams are used to process collections of objects in a functional way.
They allow for concise and readable code by enabling operations like filter, map, reduce, etc.
Example: List<String> names = Arrays.asList("Alice", "Bob", "Charlie"); Stream<String> stream = names.stream();
Top trending discussions
I applied via Walk-in and was interviewed before Jul 2020. There were 3 interview rounds.
I applied via Recruitment Consultant and was interviewed before May 2020. There were 3 interview rounds.
Clone a linked list with random pointers.
Create a new node for each node in the original list.
Store the mapping between the original and cloned nodes in a hash table.
Traverse the original list again and set the random pointers in the cloned list using the hash table.
Return the head of the cloned list.
I applied via Referral and was interviewed in May 2023. There were 5 interview rounds.
I applied via Referral and was interviewed in Jul 2021. There were 3 interview rounds.
Solder paste is a material used in electronics manufacturing to connect components to printed circuit boards.
Solder paste is a mixture of metal alloy particles and flux.
It is applied to the pads on a printed circuit board before components are placed on top.
When heated, the solder paste melts and creates a bond between the component and the board.
Different types of solder paste are used for different applications, such...
I appeared for an interview in Nov 2022.
Strong appitude knowledge is required.
SQL statements are used to interact with databases by performing operations like querying, updating, and deleting data.
SQL statements are made up of keywords like SELECT, INSERT, UPDATE, DELETE, etc.
They are structured in a specific order, with clauses like WHERE, ORDER BY, GROUP BY, etc.
Tables are referenced using their names, and conditions are specified to filter data.
Joins can be used to combine data from multiple ...
posted on 9 Dec 2024
The Two Sum problem involves finding two numbers in an array that add up to a given target value.
Iterate through the array and store the difference between the target and current element in a hashmap
Check if the current element exists in the hashmap, if yes return the indices
Time complexity can be reduced to O(n) using a hashmap
Identify overlapping time slots from a list of scheduled appointments.
Sort the time slots by start time.
Iterate through the sorted list and compare each slot with the next one.
If the start time of the next slot is less than the end time of the current slot, they conflict.
Example: Slots [(1, 3), (2, 4)] conflict because 2 < 3.
I applied via Naukri.com
Hacker rank question - easy and medium
Design solution for problems
Design a software for car ECU
Identify the requirements and functionalities of the ECU
Choose a programming language and development environment
Implement the software to control the engine, transmission, and other systems
Test the software for reliability and performance
Ensure the software is secure and can handle errors and exceptions
My strengths include strong leadership skills, excellent communication, and problem-solving abilities. My weaknesses include being overly critical of myself and sometimes taking on too much responsibility.
Strength: Strong leadership skills
Strength: Excellent communication
Strength: Problem-solving abilities
Weakness: Being overly critical of myself
Weakness: Sometimes taking on too much responsibility
I am an experienced professional with strong leadership skills and a proven track record in managing teams.
Experienced professional with strong leadership skills
Proven track record in managing teams
Excellent communication and problem-solving abilities
Ability to motivate and inspire team members
Focused on achieving goals and delivering results
based on 2 interview experiences
Difficulty level
Duration
Software Developer
22
salaries
| ₹12 L/yr - ₹18 L/yr |
Senior Software Engineer
19
salaries
| ₹10 L/yr - ₹26 L/yr |
Software Engineer
15
salaries
| ₹10 L/yr - ₹19.5 L/yr |
Marketing Manager
10
salaries
| ₹14 L/yr - ₹16.1 L/yr |
Principal Engineer
10
salaries
| ₹27 L/yr - ₹30 L/yr |
Amazon Sellers Services
Primus Global Technologies
GAMMON INDIA
Magneti Marelli Motherson Auto System