Filter interviews by
Filter a specific name from a string array
Iterate through the array and check each element for the desired name
Use a conditional statement to filter out the name from the array
Consider using Java 8 streams and lambda expressions for a more concise solution
Find consecutive subarrays in two integer arrays with sum > 6.
Iterate through both arrays to find consecutive subarrays.
Calculate the sum of each subarray and check if it is greater than 6.
Return the subarray with sum > 6.
Use a loop to iterate through the array and keep track of the maximum element found so far.
Initialize a variable to store the maximum element found so far.
Iterate through the array and update the maximum element if a larger element is found.
Return the maximum element after iterating through the entire array.
Hash table is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.
Hash table uses a hash function to map keys to indexes in an array.
It provides constant time complexity O(1) for insertion, deletion, and retrieval operations.
Collisions can occur when two keys hash to the same index, which can be resolved using techniques like chaining or open addressing.
Deadlock in multithreading occurs when two or more threads are waiting for each other to release resources, resulting in a standstill.
Deadlock happens when two or more threads are blocked forever, waiting for each other to release resources.
Four conditions must hold for deadlock to occur: mutual exclusion, hold and wait, no preemption, and circular wait.
Example: Thread 1 holds resource A and waits for resource B, ...
Thread safety in Java can be achieved by using synchronization, locks, volatile keyword, and thread-safe data structures.
Use synchronized keyword to create synchronized blocks or methods
Use locks from java.util.concurrent.locks package like ReentrantLock
Use volatile keyword to ensure visibility of changes across threads
Use thread-safe data structures like ConcurrentHashMap, CopyOnWriteArrayList
The synchronized keyword in Java ensures that a method or block is accessed by only one thread at a time, preventing thread interference.
Used to control access to a method or block by multiple threads.
Can be applied to methods (synchronized method) or blocks (synchronized block).
Example of synchronized method: 'public synchronized void methodName() { ... }'
Example of synchronized block: 'synchronized(this) { ... }...
To rollback a transaction in Spring Boot, use @Transactional annotation and throw an exception
Use @Transactional annotation on the method where the transaction needs to be rolled back
Throw an exception within the method to trigger the rollback process
Spring will automatically rollback the transaction when an exception is thrown
Memory leaks in Java occur when objects are no longer being used but are still held in memory, leading to inefficient memory usage.
Memory leaks can occur when objects are not properly dereferenced or garbage collected.
Common causes of memory leaks include circular references, static references, and unclosed resources.
Examples of memory leaks include not closing database connections or file streams after use.
Stages in Jenkins are the different steps in a Jenkins pipeline that define the actions to be executed.
Stages help break down the pipeline into smaller, manageable sections
Each stage can have multiple steps to be executed
Stages can be sequential or parallel
Common stages include build, test, deploy, and notify
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Abstraction focuses on hiding implementation details, while encapsulation bundles data and methods into a single unit.
Abstraction allows us to focus on the essential features of an object while hiding unnecessary details.
Encapsulation helps in data hiding by restricting access to certain components of an object.
Abstraction is achieved through abstract classes and interfaces in Java.
Encapsulation is implemented using ac...
PUT is used to update or replace an existing resource, while POST is used to create a new resource.
PUT is idempotent, meaning multiple identical requests will have the same effect as a single request.
POST is not idempotent, meaning multiple identical requests may have different effects.
PUT is used to update an existing resource at a specific URI.
POST is used to create a new resource under a specific URI.
PUT requests ar...
Garbage collection in Java is the process of automatically reclaiming memory that is no longer in use by the program.
Garbage collection is performed by the JVM to free up memory occupied by objects that are no longer referenced by the program.
It helps in preventing memory leaks and ensures efficient memory management.
Java provides automatic garbage collection, so developers do not have to manually free up memory.
Exampl...
Various design patterns like Singleton, Factory, Observer, etc. are used to solve common problems in software development.
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Factory pattern creates objects without specifying the exact class of object that will be created.
Observer pattern defines a one-to-many dependency between objects so that when one object changes stat...
I applied via Approached by Company and was interviewed in Jun 2024. There were 3 interview rounds.
Multithreading in Spring Boot allows for concurrent execution of tasks, improving performance and responsiveness.
Spring Boot provides support for multithreading through the use of @Async annotation.
By annotating a method with @Async, it will be executed in a separate thread.
ThreadPoolTaskExecutor can be configured to control the number of threads used for executing async methods.
Example: @Async public void asyncMethod(...
I applied via Approached by Company and was interviewed in Mar 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed before Jun 2020. There were 4 interview rounds.
Top trending discussions
posted on 30 Apr 2022
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
It can be achieved through method overloading or method overriding.
Example: A shape class can have multiple subclasses like circle, square, rectangle, etc. All these subclasses can have a method called area() which can be called on any object of the shape class.
P...
A program to check if a number is a prime factor or not.
Take input number from user
Loop through all numbers from 2 to n/2
If n is divisible by any number, it is not a prime factor
If n is not divisible by any number, it is a prime factor
posted on 19 Apr 2022
SQL, English
I applied via Naukri.com
posted on 7 Jul 2024
posted on 9 Jun 2023
I applied via Campus Placement and was interviewed before Jun 2022. There were 5 interview rounds.
30 min mid level apti and reasoning test
3 basic coding questions where given from and we had to solve only 2 of those.
I applied via Approached by Company and was interviewed in Mar 2024. There were 2 interview rounds.
Code review to find bugs
Interface features include abstraction, multiple inheritance, and contract enforcement.
Abstraction: Interfaces allow for the definition of methods without implementation, providing a blueprint for classes to follow.
Multiple Inheritance: Java interfaces support multiple inheritance, allowing a class to implement multiple interfaces.
Contract Enforcement: Interfaces define a contract that implementing classes must adhere ...
Some of the top questions asked at the Litmus7 Systems Consulting interview for freshers -
The duration of Litmus7 Systems Consulting interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 3 interview experiences
Difficulty level
Duration
based on 76 reviews
Rating in categories
Kochi,
Bangalore / Bengaluru
+17-12 Yrs
Not Disclosed
Technology Specialist
130
salaries
| ₹16 L/yr - ₹25 L/yr |
Senior Engineer
128
salaries
| ₹8.5 L/yr - ₹15 L/yr |
Senior Software Engineer
54
salaries
| ₹11.3 L/yr - ₹19 L/yr |
Associate Engineer
35
salaries
| ₹3.6 L/yr - ₹7.2 L/yr |
Software Engineer
32
salaries
| ₹4.6 L/yr - ₹10 L/yr |
Saama Technologies
Jumio
DISYS
Data-Core Systems