Showing posts with label CountDownLatch. Show all posts
Showing posts with label CountDownLatch. Show all posts

Friday, June 2, 2017

Java Experience latest Interview Quetions


1. Write the program to reverse the string without modify the special character?
2. Write the program to compare the object using comparable interface?
3. Write the program for singleton?
4. Explain concurrent packages?
5. Difference between @inject and @service annotation
6. Advantages of microservice and cassendra?
7. Write the program for executor library?
8. Whats inner join?
9. Write the program for rest controller?
10. Can we have multiple session factory in Hibernate?
11. Explain IOC container and dependency injection?
12. How many test cases you will write to test a method?

Tuesday, March 7, 2017

Happient mind Bangalore Telphonic interview Quetions

1.Restful API Client side code?
2.What is weaving?
3.Transaction management in Spring?
4.Spring and hibernate Integration?
5.Java 8 Features?
a.Lamda-Expression
b.Method References
c.Functional Interfaces
d.Streams
e.Optional Class
f.Date API
g.Base64

Sunday, July 3, 2016

Concurrent API

Synchronizers :
  • Semaphore controls access to shared resources. A semaphore maintains a counter to specify number of resources that the semaphore controls.
  • CountDownLatch allows one or more threads to wait for a countdown to complete.
  • The Exchanger class is meant for exchanging data between two threads. This class is useful when two threads need to synchronize between each other and continuously exchange data.
  • CyclicBarrier helps provide a synchronization point where threads may need to wait at a predefined execution point until all other threads reach that point.
  • Phaser is a useful feature when few independent threads have to work in phases to complete a task.
Executor Frame Work: