Filter interviews by
I was interviewed in Jul 2016.
A web application for managing student information
Allows administrators to add, edit, and delete student records
Includes features for tracking attendance, grades, and disciplinary actions
Provides a user-friendly interface for students and parents to access their information
Generates reports and analytics for administrators to analyze student performance
Top trending discussions
posted on 31 Oct 2022
I applied via Recruitment Consulltant and was interviewed in Oct 2022. There were 4 interview rounds.
I applied via Naukri.com and was interviewed in Aug 2022. There was 1 interview round.
Hashmap is a data structure that stores key-value pairs and uses hashing to retrieve values quickly.
Hashmap uses a hash function to convert the key into an index in an array.
Collisions can occur when two keys map to the same index, which is resolved using separate chaining or open addressing.
Hashmap provides constant time complexity O(1) for insertion, deletion, and retrieval of values.
Java's Hashmap implementation use...
String is immutable to ensure thread safety and prevent unintended modification.
Immutable objects are safer to use in multi-threaded environments as they cannot be changed by other threads.
String pool is possible because of immutability, which saves memory and improves performance.
StringBuffer and StringBuilder classes are used for mutable string operations.
Example: String s = "hello"; s.concat(" world"); // returns a
I applied via Approached by Company and was interviewed in Jun 2022. There were 3 interview rounds.
I applied via Job boards and was interviewed in Sep 2021. There were 4 interview rounds.
Use a physical medium like a USB drive or a portable storage device to transfer the file.
Physically carry the file on a USB drive or portable storage device.
Use a local network connection to transfer the file between the two floors.
Utilize Bluetooth or other wireless technologies to transfer the file.
If the distance is short, use a physical method like printing the file and physically handing it over.
JVM stands for Java Virtual Machine. It is an abstract machine that enables a computer to run Java programs.
JVM is responsible for interpreting the compiled Java code and executing it on the computer.
It provides a platform-independent environment for Java programs to run on different operating systems.
JVM has various components like Class Loader, Bytecode Verifier, Just-In-Time Compiler, and Garbage Collector.
Examples ...
JDK memories are areas of memory used by Java programs to store data and code.
JDK memories include heap memory, stack memory, and non-heap memory.
Heap memory is used to store objects and is managed by the garbage collector.
Stack memory is used to store method calls and local variables.
Non-heap memory is used to store class definitions and other data.
Examples of non-heap memory include the method area and the permanent ...
I applied via Naukri.com and was interviewed in Oct 2021. There were 3 interview rounds.
Explaining request mapping annotation syntax and usage in Java development
RequestMapping annotation is used to map HTTP requests to specific methods in a controller class
It can be used to specify the URL path, HTTP method, request parameters, headers, and more
Example: @RequestMapping(value = '/users', method = RequestMethod.GET)
This maps a GET request to the '/users' URL path
Sort array of strings based on custom logic
Define the custom logic for sorting
Implement a sorting algorithm such as bubble sort or quicksort
Apply the custom logic during the sorting process
Check if a string is a palindrome or not.
Reverse the string and compare it with the original string.
Use two pointers, one at the beginning and one at the end, and compare the characters.
Ignore non-alphanumeric characters and convert to lowercase before checking.
I applied via Naukri.com and was interviewed in Apr 2021. There was 1 interview round.
finally is used to execute a block of code after try-catch block, while static block is executed when class is loaded.
finally block is used to perform cleanup operations like closing database connections, file streams etc.
static block is used to initialize static variables or perform any other static initialization.
finally block is always executed whether an exception is thrown or not, while static block is executed on...
The @Autowired annotation in Spring is used to automatically wire dependencies into a bean.
It eliminates the need for manual wiring of dependencies
It can be used to inject dependencies into constructors, fields, and methods
It can be used with other annotations like @Qualifier and @Value
It can be used with both XML and Java-based configurations
To make a class immutable in Java, we need to follow certain guidelines.
Make the class final
Make all fields private and final
Do not provide setter methods
If the field is mutable, return a clone of it instead of the original object
Ensure that any mutable objects passed to the constructor are not modified outside the class
Collections are data structures that store and manipulate groups of objects.
Collections provide a way to manage and manipulate groups of objects
Java provides several built-in collection classes such as ArrayList, LinkedList, HashSet, etc.
Collections can be used to perform operations like searching, sorting, filtering, etc.
Collections can store objects of any type, including primitive types and user-defined classes
ArrayList and Vector are similar but Vector is synchronized while HashMap and HashTable are both key-value pair data structures but HashTable is synchronized.
ArrayList and Vector both implement List interface but Vector is thread-safe while ArrayList is not.
Vector is slower than ArrayList due to synchronization.
HashMap and HashTable both store key-value pairs but HashTable is thread-safe while HashMap is not.
HashMap al...
Rest Api is a web service that uses HTTP methods to access and manipulate data.
Rest stands for Representational State Transfer
It is an architectural style for building web services
Uses HTTP methods like GET, POST, PUT, DELETE
Data is transferred in JSON or XML format
Examples: Twitter API, Facebook Graph API
Program to add numbers in harmonic series (1+1/2+1/3+...+1/n)
Create a variable to store the sum
Use a loop to iterate through the series up to n
Add each term to the sum
Print the sum
I was interviewed in Oct 2020.
Round duration - 90 minutes
Round difficulty - Medium
Test was active from 28th September 8 PM till 2 AM (29th September’20). We could attempt at any time.
1.5 Hr Duration
Two coding questions.
You are provided with an undirected graph containing 'N' vertices and 'M' edges. The vertices are numbered from 1 to 'N'. Your objective is to determi...
There is a cycle in the graph only if there is a back edge (back edge is an edge that connects a vertex to another vertex that is discovered before it's parent) present in the graph. To detect a back edge, we will keep track of vertices that have been already visited. If we reach a vertex that is already visited and is not the parent vertex of the current vertex, then there is a cycle in the graph.&n...
You are provided with a 2-dimensional matrix having N
rows and M
columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...
We can use the flood fill algorithm to check for all connected 1s.
Round duration - 60 minutes
Round difficulty - Medium
Online video call round on Microsoft Teams
Interviewer was very friendly.
This round is often called Domain Discussion Round.
Given a string str
consisting of lowercase English alphabet letters, and an integer K
, you are allowed to perform at most K
operations on this string. An oper...
In this approach, we will consider every substring and check if it can be the longest repeating substring. Let’s say we have a variable ‘longestSubstring’ that stores the length of the longest repeating substring.
We can convert a substring into a repeating substring if, (L - MX) <= K (where ‘L’ is the length of substring and ‘MX’ is the count of the character which occurs maximum times in this subst...
Round duration - 60 minutes
Round difficulty - Medium
One hour HR round.
Also called Core Values Interview.
The Interviewer was a senior level employee and was very friendly.
Tip 1 : Interview is more like a two-way discussion rather than a question-answer session, feel free to ask for help/hints if you're stuck.
Tip 2 : Even if you don't know the solution to the problem just try to work out a naive solution. You can optimize it later.
Tip 3 : Make sure to read out the interview experiences of other people who have applied for the same role/company in the past
Tip 1: Keep it concise and to the point.
Tip 2: Don't forget to show your best achievements
I applied via Company Website and was interviewed in Dec 2020. There were 3 interview rounds.
System.out.println is a Java statement used to print output to the console.
System is a class in Java's core library.
out is a static member of the System class.
println is a method of the PrintStream class.
It is used to print output to the console.
It adds a newline character at the end of the output.
Static or final method is a method that belongs to a class rather than an instance of the class.
Static method can be called without creating an instance of the class.
Final method cannot be overridden by a subclass.
Static and final methods can be accessed using the class name.
Example: Math.max() is a static method in the Math class.
Example: String.toUpperCase() is a final method in the String class.
A collection is a group of objects that can be stored, manipulated, and retrieved as a single unit.
Collections are used to store and manage groups of related objects.
Java provides several built-in collection classes such as ArrayList, LinkedList, HashSet, etc.
Collections can be used to perform operations like sorting, searching, filtering, and more.
Collections can be generic or non-generic, depending on the type of obj
Yes, we can add string or integer value using map in Java.
We can use put() method to add values to a map.
For string values, we can use String as the value type.
For integer values, we can use Integer as the value type.
Example: Map
Example: Map
Sleep method pauses the thread for a specified time, while wait method pauses the thread until notified.
Sleep method is a static method of Thread class, while wait method is an instance method of Object class.
Sleep method does not release the lock on the object, while wait method releases the lock and waits for notification.
Sleep method can be interrupted by another thread, while wait method can only be interrupted by ...
Join in SQL is used to combine rows from two or more tables based on a related column between them.
Join is used to retrieve data from multiple tables in a single query
Types of join include inner join, left join, right join, and full outer join
Join condition is specified using ON keyword
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column
Join can also be used with subqueries
SQL queries are used to retrieve, manipulate and manage data stored in relational databases.
SQL stands for Structured Query Language
Queries can be used to retrieve specific data from tables
Queries can also be used to update, insert or delete data
Examples of SQL queries include SELECT, INSERT, UPDATE and DELETE
Understanding SQL is important for working with databases in Java
Abstraction is a concept of hiding implementation details while interface is a contract that defines the behavior of a class.
Abstraction is achieved through abstract classes and methods
Interface is a collection of abstract methods and constants
Abstraction allows for flexibility in implementation
Interface allows for multiple inheritance
Abstraction is used for code reusability
Interface is used for achieving polymorphism
Overloading is when multiple methods have the same name but different parameters. Overriding is when a subclass provides a different implementation of a method inherited from its superclass.
Overloading is resolved at compile-time based on the method signature.
Overriding is resolved at runtime based on the actual object type.
Overloading is used to provide different ways to call a method with different parameters.
Overrid...
Software Engineer
15
salaries
| ₹6.1 L/yr - ₹9.2 L/yr |
Softwaretest Engineer
5
salaries
| ₹4.8 L/yr - ₹8 L/yr |
Software Developer
4
salaries
| ₹6.1 L/yr - ₹7.5 L/yr |
Associate Engineer
4
salaries
| ₹6.1 L/yr - ₹6.1 L/yr |
Engineer
4
salaries
| ₹7.1 L/yr - ₹13 L/yr |
TCS
Accenture
Wipro
Cognizant