Jay Jones

Greenhorn
+ Follow
since Oct 11, 2001
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 Jay Jones

Thanks, Ian.
Stupid me, did not scroll to the bottom of the page, it is right there! I was absent from the forum for a while, things changed.
I highly recommend everyone attempting SCEA(I) to visit Sanjay's site and do Ian's mock exam. I cleared part I in June with a score of 91 (44/48) partially due to their excellent effort. Thanks!
Jay
I read somewhere that:
(1) associations in UML class diagrams are mapped directly into the instance variables in the classes involved.
(2) multiplicity of the association is manifested by a Collection
(3) direction of the association is manifested by one class having an instance variable of type of the other class, but not vise versa.
(4) use/depend relationship is translated into "import" statement.
But when I read pattern books, the above mappings are not adhere to at all, I can not see the connection between the class diagram and the Java class code. Could it because:
(1) The above mappings are not RULES that need to adhere to.
(2) People some times are too lazy to make the mapping EXPLICIT for a novice like me to see.
(3) Something wrong with me.
Help please, thank you
Hi, there,
I am new to EJB. These are some of the phrases that I do not understand fully.
"The client view of a session object is independent of the implementation of the session bean and the container." (EJB specification, page 56)
Does it mean:
(1) From the session object point of view, the client is independent of the implementation of the session bean and the container.
or
(2) From the client's point of view, the session object is independent of the implementation of the session bean and the container.
"From its creation until destruction, a session object lives in a container. Transparently to the client, the container provides security, concurrency, transactions, swapping to secondary storage, and other services for the session object." (EJB spec page 56)
What does "transparently" mean?
Thanks in advance!
I have seen the folowing code in this forum:

Since Vector is already synchronized, is synchronized (Vector) necessary ? What does it mean by synchronizing (synchronizing something)
I read in Java books that said "you can not create an object from an ABSTRACT class", but I saw a lot of ABSTRACT classes have CONSTRUCTOR(s) in them.
Could someone explain this a little bit?
Thanks in advance
22 years ago
public class Data {
...
private int recordLen = 1;// why not "private int recordLen = 0;"
...
...
}
Michael, please share your wisdom traveling from Science --> Art --> Science.
I am still struggling at the first stage, while you have gone far enough and come back a wise man.
Down deep, I am not satisfied with the intuitive and artistic argument about programming. It could be that this argument is easy and less painful to make than going one level down to find out the rules and laws that underline our intuition.
A perfect example would be the Gang of Four's pursuit of design pattern. Before the publication of their book, most experienced programmers know by their intuition something like that exists, but they went a step further beyond. I think we all benefited greatly from their effort.
22 years ago
Thank you gurus for the insight. I'll take it to heart in my struggle to be a good programmer.
22 years ago
When designing a class, how do I know the following?
(1)What fields do I need?
Are there any systematic (scientific, disciplined) ways to figure that out as opposed to the intuitive ways used by those experienced programmers?
(2)Constructors are usually for initializing the fields in a class, but I've seen constructors do far more complicated things than that, such as opening up a database, performing animation, etc. How do I know what the constructors are supposed to do when designing my class?
(3)What parameters do I need for a method? Do I decide on this first before coding the method? Or do I code the method first and then come back to fill in the method signature?
Are there any books that deal with these topics?
I have been bugged by these questions for a long time. I appreciate if you programming gurus can share with us juniors how you overcome these hurdles.
22 years ago
When designing a class, how do I know the following?
(1)What fields do I need?
Are there any systematic (scientific, disciplined) ways to figure that out as opposed to the intuitive ways used by those experienced programmers?
(2)Constructors are usually for initializing the fields in a class, but I've seen constructors do far more complicated things than that, such as opening up a database, performing animation, etc. How do I know what the constructors are supposed to do when designing my class?
(3)What parameters do I need for a method? Do I decide on this first before coding the method? Or do I code the method first and then come back to fill in the method signature?
Are there any books that deal with these topics?
I have been bugged by these questions for a long time. I appreciate if you programming gurus can share with us juniors how you overcome these hurdles.
22 years ago
Hi, Michael
Can you recommend any good RMI tutorials?
22 years ago
Has anyone worked through the example in the RMI tutorial by Wollrath & Waldo at Sun's website? I am having trouble setting the codebase, hostname, and security policy properties.
Help please!
22 years ago