Ken Loh

Ranch Hand
+ Follow
since Feb 16, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ken Loh

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



Base Class: At the association connector at the base class, use "union". Please refer to UML 2 Certification Guide: Fundamental & Intermediate Exams (The MK/OMG Press).

Final Class: I don't know of a way to represent a final class in UML.

Orphan classes: I guess they must be classes that have no association whatsoever with other classes or any objects during runtime.

Just my $0.02 worth.

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



Which certification would you like to take? For example, OMG's OCUP?
Is this site still active? When I tried just now, it gave "Sorry, Unable to process request at this time -- error 999." error.

If anyone know of any alternative URL, appreciate it if you could let me know.

Thousand thanks!

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

Oops, it's a case of posting at the wrong discussion forum.

Sorry for the blunder.
Thanks Marcus for your response.

P.S. : I think there is a typo in the link in your signature. There is an extraneous "http". Just thought that you might wish to know.
[ May 26, 2007: Message edited by: Ken Loh ]
I have checked, and that was the reason why I created the post. The errata that you have quoted does not include the class that I mentioned.

Originally posted by M Krishnan:
Have you checked here ?

Hi Jared, did you mistype something? Both declarations look the same.
The question is as follows:


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



The answer given is:


Positive infinity;
NaN;
Integer.MIN_VALUE;
Long.MIN_VALUE;
Positive zero



The explanation is:


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.



However, after reading the explanation, I still could not understand why Short.MIN_VALUE is not part of the answer while Integer.MIN_VALUE and Long.MIN_VALUE are.

Could anyone help?
In Figure 7-2 of page 538 of the SCJP 5 book by Kathy Sierra & Bert Bates, LinkedHashSet is not shown to be a subclass of HashSet. The errata from the publisher shows only another similar error about LinkedHashMap with regards HashMap, but not this one.

Kathy, if you are following this forum, would you be able to confirm this error?

Thanks,
Ken

Originally posted by Andy James:
The following link contains a quiz on Enums:

http://www.ejavaguru.com/scjp5freemockexam.php

cheers
Andy



The website seems to be no longer exist ! Does anyone know where it has relocated too?
Thanks, I've checked all of your suggestions and have found them working.

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]

What is the difference between a Product and a Solution in the IT industry, particularly the software industry?
Come again ?

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.

18 years ago
I think the crux of it is how to debug which line in the xml file that causes the problem.

I'm having a similar problem too. The trace stack just does not mention where exactly the culprit is. Is there a debug level that I could switch on where I could zoom in on the exact location of the fault ?

Any help would be very much appreciated.
18 years ago
All you need is dynamic DNS. Visit www.dyndns.com .
18 years ago