Can we use different return types for methods when overridden?
What is internal variable?
whay java does not support bass by reference
What is @injectmock?
What is aspect, advice, pointcut, jointpoint and advice arguments in aop?
What is war file in java?
What is hibernate persistence context?
What is integer valueof?
What’s the difference between struts and turbine? What’s the difference between struts and espresso?
What are bidirectional relationships?
Explain about interthread communication and how it takes place in java?
Does constructor creates the object ?
How to get the IP address of client in servlet?
In a barber shop there are 2 doors. customer come in 1 door, leave in other. minimum # of chairs. barber spend his life in cutting. always barber can cut 1 customer. few chairs in the shop. if barber busy customer waits, if chairs full, customer leave. if no customer, barber sleeps. treat barber and customer as 2 threads. you can use Semaphore class with arrive and depart and count as parameter.
What is create method?