Filter interviews by
I applied via Recruitment Consulltant and was interviewed in Jan 2022. There were 2 interview rounds.
Design a schema for a social media platform
Create tables for users, posts, comments, and likes
Include foreign keys to link tables together
Add columns for user information such as name, email, and password
Include timestamps for when posts and comments were created
Consider adding a table for hashtags to allow for easy searching
Quick sort is an efficient sorting algorithm that uses a divide-and-conquer approach to sort elements in an array.
Quick sort selects a 'pivot' element and partitions the array into two sub-arrays: elements less than the pivot and elements greater than it.
The process is recursively applied to the sub-arrays until the base case of an array with one or zero elements is reached.
Example: For the array [3, 6, 8, 10, 1, 2, 1]...
Top trending discussions
posted on 29 May 2024
Find duplicate characters in a given array of strings
Iterate through each string in the array
For each string, iterate through each character and store the count in a hashmap
If the count of any character is greater than 1, it is a duplicate
Code for REST API using Spring Boot with annotations
Use @RestController annotation to define the class as a REST controller
Use @RequestMapping annotation to map HTTP requests to handler methods
Use @GetMapping, @PostMapping, @PutMapping, @DeleteMapping annotations for specific HTTP methods
Use @PathVariable annotation to extract values from the URI
Use @RequestBody annotation to bind HTTP request body to a method paramete...
I applied via Company Website and was interviewed in Aug 2023. There was 1 interview round.
OOPs concept in Java is a programming paradigm that focuses on objects and their interactions.
OOPs stands for Object-Oriented Programming.
It involves the use of classes, objects, inheritance, polymorphism, and encapsulation.
Classes are blueprints for creating objects, and objects are instances of classes.
Inheritance allows classes to inherit properties and behaviors from other classes.
Polymorphism allows objects of dif...
A palindrome program in Java checks if a given string is the same when read forwards and backwards.
Convert the string to lowercase to ignore case sensitivity.
Use two pointers, one starting from the beginning and the other from the end of the string.
Compare the characters at the two pointers, moving them towards the center until they meet or cross each other.
If at any point the characters are not equal, the string is no...
Creating a table named 'questions' in MySQL.
Use the CREATE TABLE statement to create the table.
Specify the table name, column names, and their data types.
Set primary key, foreign key, and other constraints if required.
Add any additional properties like auto-increment, default values, etc.
Execute the SQL statement to create the table.
posted on 21 May 2024
I applied via Campus Placement and was interviewed before May 2023. There were 3 interview rounds.
Core Java
DSA
MySQL
Aptitude
I applied via Approached by Company and was interviewed in Feb 2024. There was 1 interview round.
I applied via Approached by company and was interviewed in Dec 2021. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Sep 2022. There were 3 interview rounds.
Date -2 march 2023 ,Time 2-5pm , topics-Java
Synchronization is the process of coordinating multiple threads to ensure safe and consistent access to shared resources.
Synchronization is used to prevent race conditions and ensure thread safety.
It can be achieved using synchronized blocks or methods.
Synchronization can cause performance issues if not used properly.
Example: Synchronizing access to a shared counter variable in a multi-threaded application.
Encapsulation is the process of hiding implementation details and providing access to only necessary information.
Encapsulation is achieved through access modifiers such as public, private, and protected.
It helps in achieving data abstraction and information hiding.
Encapsulation provides better control over the data and prevents unauthorized access.
Example: A class with private variables and public methods to access the...
An interface in Java is a collection of abstract methods and constants that can be implemented by a class.
Interfaces are used to achieve abstraction and provide a way to implement multiple inheritance in Java.
All methods in an interface are abstract by default and cannot have a body.
A class can implement multiple interfaces but can only extend one class.
Interfaces can also have default and static methods with a body.
Ex...
Collection framework is a set of classes and interfaces that provide a way to store and manipulate groups of objects.
It provides interfaces like List, Set, Queue, etc. for storing collections of objects.
It also provides classes like ArrayList, HashSet, PriorityQueue, etc. that implement these interfaces.
It allows easy manipulation of collections using methods like add, remove, contains, etc.
It provides algorithms like ...
ArrayList is not synchronized while Vector is synchronized.
ArrayList is faster than Vector as it is not synchronized.
Vector is thread-safe while ArrayList is not.
Vector is a legacy class while ArrayList is not.
Vector can grow by a specified amount while ArrayList grows by 50% of its size.
Example: ArrayList<Integer> list = new ArrayList<>(); Vector<Integer> vector = new Vector<>();
Example: list.a...
Legacy classes in Java are the classes that have been replaced by newer versions but are still supported for backward compatibility.
Legacy classes are part of the Java API and are still supported for backward compatibility.
They have been replaced by newer versions but are still used in older applications.
Examples of legacy classes include Vector, Hashtable, and Enumeration.
Legacy classes are not recommended for use in ...
Joins in SQL are used to combine data from two or more tables based on a related column.
Joins are used to retrieve data from multiple tables in a single query.
There are different types of joins such as inner join, left join, right join, and full outer join.
Inner join returns only the matching rows from both tables, left join returns all rows from the left table and matching rows from the right table, right join returns...
Autoboxing is the automatic conversion of primitive data types to their corresponding object wrapper classes.
Autoboxing allows primitive data types to be used as objects.
Auto-unboxing is the reverse process of autoboxing.
Autoboxing and auto-unboxing are performed automatically by the compiler.
Example: int i = 10; Integer j = i; // autoboxing
Example: Integer j = 10; int i = j; // auto-unboxing
Where clause filters rows before grouping, having clause filters groups after grouping.
Where clause is used to filter rows based on a condition before grouping.
Having clause is used to filter groups based on a condition after grouping.
Where clause is used with SELECT, UPDATE, DELETE statements.
Having clause is used with SELECT statement and GROUP BY clause.
Where clause cannot contain aggregate functions.
Having clause c...
Software Engineer
9
salaries
| ₹5 L/yr - ₹11 L/yr |
HR Manager
4
salaries
| ₹8 L/yr - ₹9.7 L/yr |
Senior Software Engineer
4
salaries
| ₹9 L/yr - ₹22 L/yr |
Software Engineer Intern
3
salaries
| ₹5 L/yr - ₹12 L/yr |
Associate Director
3
salaries
| ₹23.5 L/yr - ₹28 L/yr |
TCS
Accenture
Wipro
Cognizant