Filter interviews by
Java basic qouestion
Top trending discussions
posted on 28 Aug 2024
Session in Java is a way to maintain state between client and server over multiple requests.
Session is a server-side storage of information related to a specific user.
It allows data to be persisted across multiple requests from the same client.
Sessions are typically managed using cookies or URL rewriting.
Example: Storing user login information in a session to keep the user authenticated across multiple pages.
I applied via Campus Placement
Logic based multiple mcq type questions
Reverse of string code
posted on 20 Nov 2024
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
I applied via Company Website and was interviewed in May 2024. There were 2 interview rounds.
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Create a private static instance of the class
Provide a public static method to access the instance
Ensure the constructor is private to prevent instantiation of multiple objects
2 sum problem in Java involves finding two numbers in an array that add up to a specific target value.
Use a HashMap to store the difference between the target value and each element in the array.
Iterate through the array and check if the current element's complement exists in the HashMap.
Return the indices of the two numbers that add up to the target value.
To make a class immutable, ensure that its state cannot be changed after instantiation.
Make all fields private and final
Do not provide setter methods
Ensure that any mutable objects within the class are also made immutable
Cyclomatic complexity is a software metric used to measure the complexity of a program.
It measures the number of linearly independent paths through a program's source code.
It helps in identifying complex code that may be difficult to maintain or test.
A higher cyclomatic complexity indicates a higher risk of errors and bugs in the code.
It is calculated using the formula: E - N + 2P, where E is the number of edges, N is ...
2 Questions - One Easy and One Medium
I applied via Referral and was interviewed in Jul 2023. There were 3 interview rounds.
posted on 18 Jul 2023
I applied via Campus Placement and was interviewed in Jan 2023. There were 4 interview rounds.
Basic quant questions and logical reasoning, c++ and java
To find palindromes in a string, compare characters from both ends towards the middle.
Iterate through each string in the array
Check if the string is equal to its reverse to determine if it's a palindrome
Examples: 'level', 'radar', 'madam'
Arrays store elements in contiguous memory locations, while linked lists store elements in nodes with pointers to the next node.
Arrays have fixed size, while linked lists can dynamically grow or shrink.
Accessing elements in arrays is faster (O(1)), while in linked lists it is slower (O(n)).
Inserting or deleting elements in arrays can be inefficient, while in linked lists it is efficient.
Example: Array - [1, 2, 3, 4], L
4-5 Yrs
Not Disclosed
Software Engineer
44
salaries
| ₹2.2 L/yr - ₹8 L/yr |
Senior Software Engineer
18
salaries
| ₹4.6 L/yr - ₹11.8 L/yr |
Software Developer
13
salaries
| ₹2.5 L/yr - ₹9.5 L/yr |
Team Lead
11
salaries
| ₹2.9 L/yr - ₹8.8 L/yr |
Product Lead
7
salaries
| ₹6 L/yr - ₹19.5 L/yr |
Paytm
PhonePe
Mobikwik
Payed