RBL Bank
10+ Jayem Automotives Interview Questions and Answers
Q1. Why spring has came into picture? What are the features it provides
Spring came into picture to simplify Java development by providing features like dependency injection, aspect-oriented programming, and transaction management.
Spring provides dependency injection which helps in managing object dependencies and promotes loose coupling.
It supports aspect-oriented programming for separating cross-cutting concerns like logging, security, and transaction management.
Spring offers robust transaction management capabilities for handling database tran...read more
Q2. Which is best choice arraylist or linkedlist when space is not an issue?
ArrayList is a better choice when space is not an issue due to its constant time access, while LinkedList has better performance for insertions and deletions.
ArrayList is better for random access as it provides constant time access to elements based on index.
LinkedList is better for insertions and deletions as it does not require shifting elements in memory.
Example: If you need to frequently add or remove elements in a collection, LinkedList might be a better choice even if s...read more
Q3. What is one keyword which can be used so that value of variable cannot be changed
final keyword can be used to make a variable's value constant and unchangeable
Use 'final' keyword before the variable declaration
Once a variable is declared as final, its value cannot be changed
Example: final int num = 10; // value of num cannot be modified
Q4. Tell the approach to print the unique elements from a arraylist
Use a HashSet to store unique elements from the arraylist
Create a HashSet and add all elements from the arraylist to it
Since HashSet does not allow duplicates, only unique elements will be stored
Convert the HashSet back to an arraylist if needed
Q5. When can a conflict arise while working with git and github
Conflicts can arise in git and github when multiple developers make changes to the same file or branch simultaneously.
Conflicts can occur when two developers make changes to the same line of code in a file.
Conflicts can also arise when merging branches that have diverged and contain different changes.
Communication among team members is crucial to avoid conflicts and resolve them efficiently.
Using pull requests and code reviews can help catch potential conflicts before they oc...read more
Q6. Have you heard about deadlock ?
Yes, deadlock is a situation in concurrent programming where two or more threads are waiting for each other to release resources, causing them to be stuck indefinitely.
Deadlock occurs when two or more threads are blocked forever, waiting for each other to release resources.
It can happen when multiple threads have locks on different resources and each thread is trying to acquire a lock held by another thread.
Example: Thread A holds lock 1 and waits for lock 2, while thread B h...read more
Q7. Do you know about javafx jsp
JavaFX is a software platform for creating and delivering desktop applications, while JSP is a technology used for creating dynamic web pages.
JavaFX is used for creating rich internet applications with a modern look and feel.
JSP is used for developing dynamic web pages with Java code embedded in HTML.
JavaFX and JSP can be used together to create interactive web applications.
Q8. What is collection framework
Collection framework in Java is a set of classes and interfaces that provide a way to store and manipulate groups of objects.
It provides a way to store, retrieve, and manipulate groups of objects.
It includes interfaces like List, Set, and Map, and classes like ArrayList, HashSet, and HashMap.
Collections framework simplifies the process of working with collections of objects in Java.
Q9. What is polymorphism
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: A superclass Animal with methods eat() and sleep(). Subclasses Dog and Cat override these methods with their own implementations.
Q10. Difference between map and set
Map is a collection of key-value pairs where keys are unique, while Set is a collection of unique elements with no duplicates.
Map allows duplicate values but keys must be unique
Set does not allow duplicate elements
Map is accessed using keys, while Set is accessed using elements
Example: Map - {1: 'apple', 2: 'banana'}, Set - {'apple', 'banana'}
Interview Process at Jayem Automotives
Top Java Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month