Iris Huang

Greenhorn
+ Follow
since Oct 16, 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 Iris Huang

In Barbara book for SCEA, it says,
The J2EE technologh associated with Memento pattern is EntityBean use BMP. I do not understand how this patter relater to BMP. What is your idea?
Thanks,
Iris
Association not aggregation, not composition.
What kind way you model depends on what kind of relationship you try to model.
For example, you try to model Customer Use the Credit Card, then it is association. But if you try to model Customer has the Credit Card, then it is aggregation.
Iris
Larr,
>>customer(1)----(0..*)credit card,
>>is aggregation or composition?
I think it is neither aggregation nor composition. It is association.
Iris
Thanks for your advice.
How about the book "Designing Enterprise Applications J2EE"? Is this helpful for exam 1 or 2?
Thanks,
Iris
Anyone read the book J2EE Tutorial that is downloadable from Sun Website? Is it helpful for Exam 1 or Exam 2 or 3?
Thanks,
Iris
I am working on Marcus Green Java Programmer Certification Mock Exam No 1.
On the question 19,
What will happend when you attempt to compile and run the following code?
public class Tux extends Thread{
static String sName = "vandeleur";
public static void main(String argv[]){
Tux t = new Tux();
t.piggy(sName);
System.out.println(sName);

}
public void piggy(String sName){
sName = sName + " wiggy";
start();
}
public void run(){

for(int i=0;i < 4; i++){
sName = sName + " " + i;

}
}
}
1) Compile time error
2) Compilation and output of "vandeleur wiggy"
3) Compilation and output of "vandeleur wiggy 0 1 2 3"
4) Compilation and probably output of "vandeleur" but possible output of "vandeleur 0 1 2 3"
The answer is 4)
It says that "...
Just because sName is static does not mean that passing it to a method gives the method the original copy. The method only sees a locally created copy and any changes to it will not be reflected on return to the calling method. "
Calling the fucntion piggy(String sName) actually passes a String object reference into the function, so after the statement in the piggy function - sName = sName + " wiggy" is execuated, the sName should point to a string that is changed.
So before start the thread, the static sName actually already point to " vandeleur wiggy".
Am I wrong somewhere or the answer is wrong?
Thanks,
Iris
Is it possible to post a JSP page to client that do not have any browser menu/toolbar?
I know Javascript can show a HTML page without browser menu/toolbar. But how to implement in JSP?
Thanks,
Iris
22 years ago