Filter interviews by
Exception handling in Java involves using try-catch blocks to manage errors gracefully and maintain application stability.
Use try-catch blocks to catch exceptions: try { // code that may throw an exception } catch (ExceptionType e) { // handle exception }
Use finally block for cleanup: try { // code } catch (Exception e) { // handle exception } finally { ...
Microservices communicate via APIs, messaging queues, or event-driven architectures to share data efficiently.
1. RESTful APIs: Services expose endpoints for data retrieval. Example: Service A calls Service B's API to get user details.
2. Messaging Queues: Use tools like RabbitMQ or Kafka for asynchronous communication. Example: Service A sends a message to a queue that Service B listens to.
3. gRPC: A high-performan...
Collections in Java are frameworks that provide an architecture to store and manipulate a group of objects.
Collections provide interfaces (List, Set, Map) and classes (ArrayList, LinkedList, HashSet, HashMap) to store and manipulate groups of objects.
Collections framework includes algorithms to manipulate data structures like sorting, searching, etc.
Collections are more flexible and efficient than arrays in Java.
E...
A for loop is a control flow statement for executing a block of code repeatedly based on a condition.
Syntax: for(initialization; condition; increment/decrement) { // code block }
Example: for(int i = 0; i < 5; i++) { System.out.println(i); } // prints 0 to 4
Used for iterating over arrays or collections.
Can be nested: for(int i = 0; i < 3; i++) { for(int j = 0; j < 2; j++) { // code block } }
Enhanced for lo...
Exception handling in Java manages runtime errors, ensuring program stability and providing a way to respond to unexpected conditions.
Java uses try, catch, and finally blocks for exception handling.
A try block contains code that may throw an exception.
Catch blocks handle specific exceptions, e.g., catch (IOException e) {}.
Finally block executes regardless of exception occurrence, e.g., finally { cleanup(); }.
Custo...
Java is a compiled language that is first compiled into bytecode and then interpreted by the Java Virtual Machine (JVM).
Java is first compiled into bytecode by the Java compiler.
The bytecode is then interpreted by the Java Virtual Machine (JVM) at runtime.
This combination of compilation and interpretation makes Java a compiled language with some interpreted features.
Update query to modify data in a database table
Use UPDATE statement followed by table name
Set the column(s) to be updated using SET keyword
Specify the new values for the column(s) to be updated
Add WHERE clause to specify the condition for updating specific rows
There are 12 columns in Bootstrap grid system.
Bootstrap grid system is divided into 12 columns.
Columns can be combined to create different layouts.
Example:
I applied via Walk-in and was interviewed in Jul 2024. There was 1 interview round.
Update query to modify data in a database table
Use UPDATE statement followed by table name
Set the column(s) to be updated using SET keyword
Specify the new values for the column(s) to be updated
Add WHERE clause to specify the condition for updating specific rows
There are 12 columns in Bootstrap grid system.
Bootstrap grid system is divided into 12 columns.
Columns can be combined to create different layouts.
Example:
Java is a compiled language that is first compiled into bytecode and then interpreted by the Java Virtual Machine (JVM).
Java is first compiled into bytecode by the Java compiler.
The bytecode is then interpreted by the Java Virtual Machine (JVM) at runtime.
This combination of compilation and interpretation makes Java a compiled language with some interpreted features.
I applied via Walk-in and was interviewed in May 2024. There was 1 interview round.
I appeared for an interview before Apr 2024, where I was asked the following questions.
Top trending discussions
I applied via Campus Placement
It is easy to crack the first round with the basic topics of aptitude.
Must learn string,array,pointer and others to clear this round
posted on 17 May 2024
I applied via Naukri.com and was interviewed in Apr 2024. There were 2 interview rounds.
posted on 17 May 2024
Java is a versatile, object-oriented programming language used for building applications across various platforms.
Java is platform-independent due to the Java Virtual Machine (JVM). Example: Write once, run anywhere.
It supports object-oriented programming principles like inheritance, encapsulation, and polymorphism. Example: Class and object creation.
Java has a rich API and a large ecosystem of libraries and frameworks...
posted on 26 May 2024
I applied via LinkedIn and was interviewed in Apr 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Feb 2024. There were 2 interview rounds.
To find the highest element in a BST, perform a right traversal until reaching the rightmost leaf node.
Perform a right traversal starting from the root node until reaching the rightmost leaf node to find the highest element.
Implement the insertion operation by comparing the value to be inserted with each node and traversing left or right accordingly.
Ensure that the BST property is maintained during insertion by placing...
Heap Sort is a comparison-based sorting algorithm that uses a binary heap data structure.
Heap Sort involves building a max heap from the input array, then repeatedly removing the maximum element and rebuilding the heap.
The time complexity of Heap Sort is O(n log n) in the worst case scenario.
Example: Given an array [4, 10, 3, 5, 1], after applying Heap Sort, the sorted array would be [1, 3, 4, 5, 10].
To delete the nth element from the end in a LinkedList, we can use two pointers approach.
Use two pointers - one to traverse the list and another to keep track of the nth element from the end.
Calculate the distance between the two pointers and delete the node at the second pointer.
Ages, trains, profit losss, hcf lcm, clock, simple interest 30 min
Array string sorting algorithm
posted on 27 Nov 2024
I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.
They have asked one coding Questions , and i have done also help of JAVA8 but he said do by JAVA 7 with DSA , I am very disappointed .
The duration of HEPL - A Cavinkare Group Company 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 176 reviews
Rating in categories
Executive Accountant
33
salaries
| ₹1.4 L/yr - ₹3 L/yr |
Team Lead
30
salaries
| ₹3.3 L/yr - ₹6 L/yr |
Senior Accounts Executive
28
salaries
| ₹2.5 L/yr - ₹3.5 L/yr |
Business Analyst
16
salaries
| ₹1 L/yr - ₹5 L/yr |
Java Developer
14
salaries
| ₹0.8 L/yr - ₹2.5 L/yr |
Teleperformance
Amazon
iEnergizer
Deloitte