KRK Gowda wrote:Hi All,
I am preparing for OCUP exam. I have couple of Questions in modelling Class diagrams.
How we can represent Base class in UML?
How we can represent Final Class?
What are orphan Classes?
Can we use stereotypes to represent above kind of classes?
Thanks and Regards,
Gowda
Ramesh Kumar wrote:HI
i would like to complete OOAD (Object oriented Analaysis and Design ) certification .so please share your valuable ideas with me
what are all the books i can refer ???
i have reading head first ooad book now .
Thank you![]()
Ramesh
Originally posted by Gurmail Kandola:
Get the study guide from Manning which is pretty concise and cohesive, at least in my opinion:
www.manning.com/sanghera
Originally posted by M Krishnan:
Have you checked here ?
The java.lang.Math.abs method can return which of the following?
a. Negative infinity
b. Positive infinity
c. NaN
d. Short.MIN_VALUE
e. Integer.MIN_VALUE
f. Long.MIN_VALUE
g. Negative zero
h. Positive zero
Positive infinity;
NaN;
Integer.MIN_VALUE;
Long.MIN_VALUE;
Positive zero
The method name abs is overloaded. There are versions that accept one argument of type int, long, float or double. The type of the return value is the same as the argument type. The result is positive infinity if the argument is negative infinity. The result is positive zero if the argument is negative zero. The result is NaN if the argument is NaN. If the argument is a negative integral value, then the returned value is the two's complement of the argument. The magnitude of Integer.MIN_VALUE is one greater than the magnitude of Integer.MAX_VALUE; therefore, the absolute value of Integer.MIN_VALUE exceeds the range of Integer.MAX_VALUE. Due to the limited range of type int, the two's complement of Integer.MIN_VALUE is Integer.MIN_VALUE. For that reason, the Math.abs method returns Integer.MIN_VALUE when the argument is Integer.MIN_VALUE. The negation of Short.MIN_VALUE is well within the range of type int; so Short.MIN_VALUE is never returned by the Math.abs method.
Originally posted by Andy James:
The following link contains a quiz on Enums:
http://www.ejavaguru.com/scjp5freemockexam.php
cheers
Andy
Originally posted by Andrew Shumway:
Then, what version of List should be given to make it work. I tried, but I could not get anything to work.
[ January 30, 2006: Message edited by: Hamid Virani ]<hr></blockquote>
Using the Generics class above the following declarations work
Because Number both extends Number and is super of Number
Like the above I can see that the input list will work because Number extends Number. However I can't see List<? super Integer> qualifies when the process method will return List<? super Number> However, I don't get a compile error. I'm guessng that since all super classes of Number are also super classes of Integer it's ok.
This also works for the same reason as the first.
--andrew
[ February 02, 2006: Message edited by: Andrew Shumway ][/QB]
Originally posted by Bianca Wade:
Honestly, I didn't understand that, but I figured it out. I'm using the Eclipse IDE, and my problem was in the configuration. I went through a tutorial which explained how to add the configuration. What it didn't say is to add the standards for the web and ejb.