Filter interviews by
Aggregation and composition are two types of relationships between objects in object-oriented programming.
Aggregation is a relationship where one object is a container for other objects, but the contained objects can exist independently.
Composition is a relationship where one object is composed of other objects, and the composed objects cannot exist independently.
Aggregation is represented by a 'has-a' relationship, wh...
Executor framework is a Java framework that provides a way to execute tasks asynchronously using a thread pool.
It provides a way to manage threads and execute tasks in a thread pool
It allows for better resource management and improved performance
It supports different types of thread pools such as fixed, cached, and scheduled
Example: Executors.newFixedThreadPool(10) creates a thread pool with 10 threads
Two threads can communicate through shared memory or message passing.
Shared memory: Both threads can access the same memory location to exchange data.
Message passing: One thread sends a message to another thread through a communication channel.
Synchronization primitives like locks, semaphores, and barriers can be used to coordinate access to shared resources.
Examples: POSIX threads, Java threads, Windows threads.
A functional interface is an interface with only one abstract method. It can be implemented using lambda expressions.
Functional interfaces are used in Java 8's functional programming features.
Examples of functional interfaces include Runnable, Comparator, and Callable.
To create your own functional interface, use the @FunctionalInterface annotation.
The interface should have only one abstract method, and can have default...
Java8 introduced several new features including lambda expressions, streams, and default methods.
Lambda expressions allow for functional programming and simplify code.
Streams provide a way to process collections of data in a functional way.
Default methods allow for adding new methods to interfaces without breaking existing implementations.
Other features include the Date and Time API, Nashorn JavaScript engine, and impr...
Stream class methods include read, write, seek, tell, flush, and more.
read() - reads data from the stream
write() - writes data to the stream
seek() - moves the stream position to a specified location
tell() - returns the current position in the stream
flush() - flushes any buffered data to the stream
eof() - returns true if the end of the stream has been reached
good() - returns true if the stream is in a good state
fail() -...
Future is an interface while CompletableFuture is a class that implements Future and provides additional methods.
Future is a basic interface for asynchronous programming in Java
CompletableFuture is a class that implements Future and provides additional methods like thenApply(), thenAccept(), etc.
CompletableFuture can be used to chain multiple asynchronous operations
CompletableFuture can also be used to handle exception...
Transactions in microservices ensure data consistency and integrity.
Use distributed transactions to ensure atomicity across multiple services.
Implement compensating transactions to handle failures and rollbacks.
Use event-driven architecture to maintain consistency between services.
Consider using a Saga pattern to manage long-running transactions.
Avoid two-phase commit as it can lead to performance issues and scalabilit
The @Transactional annotation is used in Spring to manage transactions in a declarative way.
It is used to define the scope of a transaction.
It can be applied at the class or method level.
It supports various attributes like propagation, isolation, timeout, and read-only.
It can be used with different transaction managers like JDBC, Hibernate, JPA, etc.
It rolls back the transaction if an exception is thrown.
It can be used...
HTTP methods are used to specify the type of action to be performed on a resource.
GET - retrieve information from the server
POST - submit data to the server
PUT - update a resource on the server
DELETE - remove a resource from the server
HEAD - retrieve headers from the server
OPTIONS - retrieve the supported HTTP methods for a resource
PATCH - update a resource partially on the server
EnableAutoConfiguration enables auto-configuration of Spring Boot application while ComponentScan scans for Spring components.
EnableAutoConfiguration automatically configures Spring Boot application based on classpath and other settings.
ComponentScan scans for Spring components and registers them as beans.
EnableAutoConfiguration is used in main application class while ComponentScan can be used in any configuration clas...
Top trending discussions
I applied via Company Website and was interviewed in Nov 2024. There were 4 interview rounds.
It was a simple Aptitude test designed to test your english proficiency and your quantitative skills.
There were 2 coding questions. The level of questions were not very high. The languages available for the round were Python, Java, C++, C, C#.
posted on 20 Nov 2024
To swap two variables, use a temporary variable to store one value before swapping them.
Create a temporary variable to store one of the values
Assign the first variable to the temporary variable
Assign the second variable to the first variable
Assign the temporary variable to the second variable
Pointers are variables that store memory addresses of other variables or functions.
Pointers are used to access and manipulate memory directly.
They are commonly used in programming languages like C and C++.
Example: int *ptr; // declaring a pointer to an integer variable
I applied via Campus Placement and was interviewed in Nov 2024. There was 1 interview round.
Drop removes a table from the database while delete removes specific rows from a table.
DROP is a DDL (Data Definition Language) command used to remove a table and its data from the database.
DELETE is a DML (Data Manipulation Language) command used to remove specific rows from a table based on a condition.
DROP command is irreversible and all the data in the table is lost, while DELETE can be rolled back if used within a...
SQL commands are used to interact with databases and perform various operations like querying, updating, and deleting data.
SELECT - retrieves data from a database
INSERT - adds new data to a database
UPDATE - modifies existing data in a database
DELETE - removes data from a database
CREATE - creates a new database or table
ALTER - modifies the structure of a database object
DROP - deletes a database object
JOIN - combines row...
There were two coding questions
There was oncampus coding round , where 1 question was given.
Mercel platform 1 hour
Developed a web-based project management tool for tracking tasks and deadlines.
Used HTML, CSS, and JavaScript for front-end development
Implemented backend functionality using Node.js and MongoDB
Incorporated user authentication and authorization features
Utilized RESTful APIs for communication between front-end and back-end
I would write a code snippet based on the specific cluster or category provided.
Identify the specific cluster or category provided in the question
Write a code snippet that aligns with the requirements of the cluster
Ensure the code is accurate and relevant to the given cluster
I applied via Campus Placement
General aptitude, behaviourial and some analytical questions
posted on 24 Oct 2024
Numerical based questions are there mostly
Good basic level coding questions
I have worked on various projects including a web application for online shopping and a mobile app for task management.
Developed a web application using HTML, CSS, and JavaScript for online shopping
Created a mobile app using React Native for task management
Implemented RESTful APIs for communication between front-end and back-end systems
I applied via Indeed and was interviewed in Jun 2024. There were 2 interview rounds.
They will give assignment with video explanation.
posted on 7 Jun 2024
I applied via Company Website and was interviewed in May 2024. There was 1 interview round.
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructors, fields, and methods, while interface cannot have any of these.
A class can implement multiple interfaces but can only inherit from one abstract class.
Abstract classes are used to provide a common base for multiple classes, while interfaces define a contract that implementin
Static and final keywords are used in Java to define class-level variables and constants respectively.
Static keyword is used to define class-level variables and methods, which are shared among all instances of the class.
Final keyword is used to define constants that cannot be changed once initialized.
Static variables are accessed using the class name, while final variables are accessed using object references.
Example: ...
Senior Test Engineer
3
salaries
| ₹9.7 L/yr - ₹10.1 L/yr |
TCS
Accenture
Cognizant
Infosys