Filter interviews by
posted on 9 Nov 2023
I applied via Walk-in and was interviewed before Nov 2022. There were 6 interview rounds.
Total 60 marks. 40 marks on coding and 20 marks on aptitude.
Self and java related questions.
posted on 19 Sep 2024
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Overloading is having multiple methods with the same name but different parameters, while overriding is implementing a method in a subclass with the same signature as in the superclass.
Overloading allows different methods to have the same name but different parameters.
Overriding involves implementing a method in a subclass with the same signature as in the superclass.
Overloading is determined at compile time based on t...
posted on 24 Mar 2023
I applied via Approached by Company and was interviewed in Feb 2023. There was 1 interview round.
There are two types of cloning in Java: Shallow and Deep cloning.
Shallow cloning creates a new object with the same field values as the original object, but the fields refer to the same objects as the original object.
Deep cloning creates a new object with the same field values as the original object, but the fields refer to new copies of the original objects.
Shallow cloning can be done using the clone() method, while d...
Idempotent methods in REST are HTTP methods that can be repeated multiple times without changing the result beyond the initial application.
Idempotent methods are safe to retry or repeat without causing unintended side effects.
GET, HEAD, PUT, and DELETE are idempotent methods.
POST is not idempotent because it creates a new resource with a new URI each time it is called.
Idempotency is important for ensuring the reliabili
PUT is used to update an existing resource, while POST is used to create a new resource.
PUT replaces the entire resource with the new data, while POST appends the new data to the existing resource.
PUT is idempotent, meaning multiple identical requests will have the same effect as a single request, while POST is not.
PUT requires the client to specify the resource ID in the request URL, while POST does not.
Example: PUT /...
Hibernate provides two levels of caching: first-level cache and second-level cache.
First-level cache is enabled by default and is associated with a Session object.
Second-level cache is optional and can be configured to use different caching providers like Ehcache, Hazelcast, etc.
Caching can improve application performance by reducing the number of database queries.
Caching can also cause data inconsistency issues if not...
Hashcode and equals method are related in Java to ensure proper object comparison and hashing.
The hashcode method returns an integer value that represents the object's unique identifier.
The equals method compares two objects for equality and returns a boolean value.
If two objects are equal, their hashcodes must be equal as well.
If two objects have the same hashcode, it does not necessarily mean they are equal.
It is imp...
Program to find duplicate elements in an array list
Create a HashSet to store unique elements
Loop through the array list and add each element to the HashSet
If an element already exists in the HashSet, it is a duplicate
Add the duplicate element to another list or print it
Cascading in Hibernate refers to the ability to propagate the state of an entity to its associated entities.
Cascading is used to automatically persist, update, or delete associated entities when the state of the parent entity changes.
There are different types of cascading options available in Hibernate, such as ALL, PERSIST, MERGE, REMOVE, and REFRESH.
For example, if a parent entity has a collection of child entities a...
getSession() retrieves the current session while load() method loads the object by its identifier.
getSession() method is used to retrieve the current session from the session factory.
load() method is used to load the object by its identifier.
getSession() method returns null if there is no current session.
load() method throws an exception if the object is not found in the database.
getSession() method is used for read an...
HQL stands for Hibernate Query Language. It is an object-oriented query language used to retrieve data from a database.
HQL is similar to SQL but uses object-oriented concepts like inheritance, polymorphism, and association.
It is database independent and can be used with any database supported by Hibernate.
HQL queries are compiled to SQL queries at runtime, which makes it more efficient than using SQL directly.
It suppor...
XML validation can be done using XML Schema Definition (XSD) or Document Type Definition (DTD).
XSD is the preferred method for XML validation as it provides more features and is easier to use.
DTD is an older method and has limited features compared to XSD.
XML validation can be done using tools like XMLSpy, Notepad++, and online validators like W3C Markup Validation Service.
Validation can be done programmatically using ...
Methods of Object class in Java
toString() - returns a string representation of the object
equals(Object obj) - checks if two objects are equal
hashCode() - returns a hash code value for the object
getClass() - returns the runtime class of the object
wait() - causes the current thread to wait
notify() - wakes up a single thread that is waiting on the object
notifyAll() - wakes up all threads that are waiting on the object
Secure REST API using authentication, encryption, and authorization.
Use HTTPS protocol to encrypt data in transit
Implement authentication using tokens or OAuth2
Implement authorization using roles and permissions
Use input validation and output encoding to prevent injection attacks
Implement rate limiting to prevent DDoS attacks
Various authentication methods can be used to secure REST API, including OAuth, JWT, Basic Authentication, and API Keys.
OAuth is a popular authentication method that allows users to grant access to third-party applications without sharing their credentials.
JWT (JSON Web Tokens) is a stateless authentication mechanism that uses a token to authenticate users.
Basic Authentication uses a username and password to authentica...
Exceptions in REST are handled using try-catch blocks and HTTP status codes.
Use try-catch blocks to catch exceptions thrown by the application
Map exceptions to appropriate HTTP status codes
Return error messages in the response body
Use global exception handlers to handle uncaught exceptions
Avoid returning sensitive information in error messages
Arrays use a linear data structure while HashMap uses a key-value pair data structure.
Arrays are indexed collections of elements of the same data type.
HashMaps store key-value pairs and allow for fast retrieval of values based on their keys.
Arrays have a fixed size while HashMaps can dynamically resize.
Arrays are more efficient for simple data structures while HashMaps are better for complex data structures.
SQL injection is a type of cyber attack where malicious SQL statements are inserted into an entry field to manipulate the database.
SQL injection can be used to steal sensitive information, modify or delete data, or even take control of the entire database.
It can be prevented by using parameterized queries, input validation, and limiting user privileges.
Example: Entering ' OR 1=1;--' in a login form can bypass authentic...
Synchronized keyword is used to control access to shared resources in a multithreaded environment.
It ensures that only one thread can access the shared resource at a time.
It can be applied to methods or blocks of code.
It can cause performance issues if used excessively.
Example: synchronized void myMethod() { //code }
Example: synchronized(this) { //code }
String is immutable while StringBuffer is mutable.
StringBuffer is faster for concatenation operations.
StringBuffer has methods to modify the string while String does not.
StringBuffer is thread-safe while String is not.
Example: String str = "hello"; StringBuffer sb = new StringBuffer(str); sb.append(" world");
Example: String str = "hello"; str.concat(" world"); // returns a new string, original string is not modified.
Design patterns are reusable solutions to common software problems.
Design patterns help in creating flexible, reusable, and maintainable code.
Some popular design patterns in Java are Singleton, Factory, Observer, and Decorator.
Singleton pattern ensures that only one instance of a class is created.
Factory pattern provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objec...
Reflection API in Java allows inspection and modification of runtime behavior of a program.
Reflection API provides classes like Class, Method, Field, Constructor, etc. to inspect and modify the behavior of a program at runtime.
It can be used to access private fields and methods of a class.
It can be used to create new instances of a class dynamically.
It can be used to invoke methods of a class dynamically.
It can be used...
posted on 19 Dec 2023
posted on 27 Apr 2023
I was interviewed in Mar 2023.
To add a dependency, you need to specify it in the project's build file.
Open the build file (pom.xml for Maven or build.gradle for Gradle)
Add the dependency in the appropriate section
Save the file and run the build command to download and install the dependency
Example:
posted on 28 Feb 2023
I applied via Campus Placement
Normal Gaming Question and Aptitude
posted on 10 Sep 2024
I applied via Recruitment Consulltant and was interviewed in Aug 2024. There was 1 interview round.
Logic App logs are stored in Azure Monitor Logs (formerly known as Log Analytics).
Logic App logs are stored in Azure Monitor Logs, which is a centralized log storage and analytics service in Azure.
Logs can be viewed and analyzed using Azure Monitor Logs queries.
Logs can also be integrated with other Azure services for monitoring and alerting purposes.
Use the OFFSET and FETCH clauses in SQL to get the 5th top position data.
Use the ORDER BY clause to sort the data in descending order.
Use the OFFSET clause to skip the first 4 rows.
Use the FETCH clause to retrieve only the next row after skipping the first 4 rows.
Custom middleware in .NET Core can be implemented by creating a class that implements the IMiddleware interface and adding it to the application pipeline.
Create a class that implements the IMiddleware interface
Implement the InvokeAsync method in the middleware class to handle the request processing logic
Add the custom middleware to the application pipeline in the Configure method of the Startup class
Authentication verifies the identity of a user, while authorization determines what resources a user can access.
Authentication confirms the identity of a user through credentials like username and password.
Authorization determines the permissions and access levels of a user based on their authenticated identity.
In ASP.NET Core, authentication is handled through middleware like Identity, OAuth, or JWT tokens.
Authorizati...
Session management in ASP.NET Core involves storing and retrieving user-specific data during a user's visit to a website.
Session data is stored on the server side by default in ASP.NET Core
Session data can be accessed and manipulated using the HttpContext.Session property
Session data can be configured to use different storage providers such as in-memory, distributed cache, or SQL Server
Session data is typically used to...
I applied via Walk-in and was interviewed in Oct 2024. There was 1 interview round.
Def factorial_iterative(n):
result = 1
for i in range(1, n + 1):
result *= i
return result
I applied via Naukri.com and was interviewed in Apr 2024. There were 3 interview rounds.
SAGA pattern is a design pattern used in microservices architecture to manage distributed transactions.
SAGA pattern breaks down a long-running transaction into a series of smaller, independent transactions.
Each step in the SAGA pattern is a separate service that communicates with other services through events.
If a step fails, compensating transactions are executed to rollback the changes made by previous steps.
Example:...
API stands for Application Programming Interface. It defines the methods and data formats that applications can use to communicate with each other.
API is a set of rules and protocols that allows different software applications to communicate with each other.
To secure an API, you can use authentication methods like OAuth, API keys, or JWT tokens.
Implementing encryption (HTTPS) and rate limiting can also enhance API secu...
Software Engineer
39
salaries
| ₹2.5 L/yr - ₹6.5 L/yr |
Senior Software Engineer
16
salaries
| ₹6 L/yr - ₹10 L/yr |
QA Engineer
15
salaries
| ₹2.5 L/yr - ₹5 L/yr |
Technical Lead
8
salaries
| ₹10 L/yr - ₹14 L/yr |
Programmer
8
salaries
| ₹2.5 L/yr - ₹4 L/yr |
Infosys
TCS
Wipro
HCLTech