Only a stateless session bean may provide a web service client view
7) Imagine that the Application you develop periodically sends some events to some other parts of the Application at some defined intervals. Which of the following enterprise bean(s) can be used in this scenario?
1. Entity Bean
2. Stateful Session Bean
3. Stateless Session Bean
4. Message Driven Bean
5. Timer Bean
6. None of the above.
Timers can be set on entity, stateless session, and message beans.
Originally posted by M Srilatha:
hi,
I think the answer is B for 3rd question.
And the your answers other two are correct as Ankit said!
As the class Two is using a public getter method to get instance variable of class One, those two are not tightly coupled. But the value of y(instance variable of class Two) is depending on the value of x(instance variable of class One), both classes are loosely coupled!
Hope this helps!
Originally posted by Rekha Srinath:
Ankit,
I had another query seeing the following code of yours:
Can i say that the above code ENSURES that c1 WILL complete first and then followed by c2?
[ November 03, 2008: Message edited by: Rekha Srinath ]
Originally posted by Preetha Arun:
It is not type safe on right hand side(new Aks[5]). it means your are allowed to put anything in the array.
Please correct me if am wrong.
Preparing Scjp1.5
public String[] split(String regex)
This method works as if by invoking the two-argument split method with the given expression and a limit argument of zero.
public String[] split(String regex,
int limit)
...
The limit parameter controls the number of times the pattern is applied and therefore affects the length of the resulting array. If the limit n is greater than zero then the pattern will be applied at most n - 1 times, the array's length will be no greater than n, and the array's last entry will contain all input beyond the last matched delimiter. If n is non-positive then the pattern will be applied as many times as possible and the array can have any length. If n is zero then the pattern will be applied as many times as possible, the array can have any length, and trailing empty strings will be discarded.