Happiest Mind Java Interview Questions.
Experience - 3 years.
Date - May 2019.
Location - Bangalore.
First Round Face 2 Face.
- Tell me about yourself.
- Your roles and responsibility in your projects.
- What is difference between encapsulation and abstraction?
- Difference between overriding and overloading.
- Types of exceptions.
- How to create user defined exceptions.
- What is string constant pool.
- Difference between hashmap and hashtable.
- Difference between pick ,poll and remove of Queue interface.
- What is concurrent hashmap.
- We have hashmap ,how to sort it’s key using treemap?
- Write the producer consumer problem to print even odd numbers.
- Difference between java 7 and java 8.
- What is functional interface and marker interface in java 8.
- How to use synchronization?
- Which one synchronization should be used class level or method level or local block level?
- If return statement is written in try block and we have finally block also so will finally block execute?
- Inside run method we have infinite while loop like while(true)s.o.p.(“Thread A”) and after a.start() in main method we have one s.o.p so will it execute?
- Do we have any way to convert hashmap to concurrent hashmap?
- If we have many variable in class ,but I don’t want to serialize few variables what to do?
- What is the use of volatile keyword.
- write the code to shift the element of an array at particular index.
- Difference between Sleep and wait.
- Difference between timed-waiting and waiting state.
- What is serializable interface?
- Difference between HashMap and LinkedHashMap.
- How to get database connection in jdbc.
- What are the spring modules?
- Singleton & Prototype design pattern explanation.
- Component-Scan annotation functionality.
- What is difference between dependency injection and IOC?
- What is the use of @Transactional annotation in spring.
- Explain spring mvc.
- Write the code to perform inner join operation on Employee table and Department Table.
- Write the query for performing left outer join operation on the above same table.
- How to achieve auto_increment in Oracle database?
- How to declare variable in Stored Procedure?
- How to break singleton?
- How many design pattern you are aware about?
- How to post the data in webservices?
- Can we write private method in subclass while overriding.
- Can we pass parameter in URL while producing the data as we can in consuming ?
- What is the way to write the method in rest to consume or produce the data?
- Write the code to find the highest element in array elements.o(1)
1. How was the interviewer?
2. What are the technology he touched during interview?
3. How do your rate him in java technology?