Filter interviews by
HashMap in Java is a data structure that stores key-value pairs and allows fast retrieval of values based on keys.
HashMap is part of the Java Collections framework.
It uses hashing to store key-value pairs, allowing for fast retrieval.
Keys in a HashMap must be unique, but values can be duplicated.
Example: HashMap<String, Integer> map = new HashMap<>(); map.put("John", 25);
A constructor in Java is a special type of method that is used to initialize objects. It has the same name as the class and no return type.
Constructors are called when an object of a class is created.
They can be used to initialize instance variables or perform any other setup required for the object.
Constructors can be overloaded, meaning a class can have multiple constructors with different parameters.
If a class does ...
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.rollNo -
A Comparator in Java is an interface used to compare objects for sorting purposes.
Comparator interface is used to define custom comparison logic for objects.
It has a method called compare() which takes two objects as arguments and returns an integer value based on their comparison.
It is commonly used with sorting algorithms like Collections.sort() or Arrays.sort().
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.
Spring Boot annotations are used to simplify the development process by providing metadata to the Spring framework.
Annotations like @RestController, @RequestMapping, and @Autowired are commonly used in Spring Boot to define controllers, request mappings, and dependency injection.
Annotations like @SpringBootApplication are used to bootstrap the Spring application context.
Annotations like @ComponentScan and @EnableAutoCo...
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();
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 prefer...
I applied via Recruitment Consulltant and was interviewed before Jan 2024. There were 2 interview rounds.
I am a passionate software developer with experience in developing web applications using various technologies.
Experienced in developing web applications using HTML, CSS, JavaScript, and frameworks like React and Angular
Proficient in backend development with Node.js and databases like MySQL and MongoDB
Familiar with version control systems like Git and project management tools like Jira
React is a JavaScript library for building user interfaces. Closure in JavaScript is when a function has access to variables in its outer scope even after the function has finished executing.
React is a popular JavaScript library for building user interfaces.
It allows developers to create reusable UI components.
Closure in JavaScript is when a function retains access to variables from its outer scope even after the funct...
Top trending discussions
They have conducted on their own platform
Event bubbling is the propagation of an event from the innermost child element to the outermost parent element.
Events triggered on a child element will also trigger on its parent elements
The event travels up the DOM tree until it reaches the document object
Can be stopped using event.stopPropagation()
Can be useful for event delegation
The .on('click',function() is a more flexible method than .click(function())
The .on() method can handle multiple events and selectors
The .click() method can only handle one event and one selector
The .on() method can also handle dynamically added elements
The .click() method cannot handle dynamically added elements
Function to check if two strings are anagram or not
Create two character arrays from the strings
Sort the arrays
Compare the sorted arrays
Function to determine the order of integers in an array.
Check first and last element to determine if increasing or decreasing
Check for inflection point to determine if order changes
Return order type as string
Optimize images, minify code, reduce HTTP requests, use caching, and lazy loading.
Optimize images using compression and appropriate file formats
Minify code to reduce file size and improve load times
Reduce HTTP requests by combining files and using sprites
Use caching to store frequently accessed data locally
Implement lazy loading to defer loading of non-critical resources
Design a database schema for a movie site with user ratings and recommendations.
Create tables for movies, users, ratings, and recommendations
Use foreign keys to link tables
Include columns for movie genre and user watch history
Algorithm for recommendations can use user watch history and ratings to suggest similar movies
Function to simulate dice roll with equal probability without using random function
Use a toss function that returns either 0 or 1 with equal probability
Call the toss function 3 times and convert the result to a binary number
If the binary number is greater than 0 and less than or equal to 6, return it
If the binary number is greater than 6, repeat the process
Query to fetch duplicate email from table
Use GROUP BY and HAVING clause to filter out duplicates
SELECT email, COUNT(*) FROM table_name GROUP BY email HAVING COUNT(*) > 1;
This will return all the duplicate emails in the table
I applied via Campus Placement
I applied via Referral
I applied via Referral
I applied via Walk-in and was interviewed before Jul 2020. There were 3 interview rounds.
based on 3 interviews
Interview experience
based on 7 reviews
Rating in categories
4-6 Yrs
Not Disclosed
Senior Software Engineer
18
salaries
| ₹10 L/yr - ₹30 L/yr |
Software Engineer
14
salaries
| ₹10 L/yr - ₹19.5 L/yr |
Marketing Manager
10
salaries
| ₹14 L/yr - ₹16.1 L/yr |
Principal Engineer
9
salaries
| ₹27 L/yr - ₹30 L/yr |
Quality Analyst
6
salaries
| ₹4.8 L/yr - ₹6 L/yr |
Amazon Sellers Services
Primus Global Technologies
GAMMON INDIA
Practo