Andy Peter

Greenhorn
+ Follow
since Dec 26, 2002
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 Andy Peter

Thanks Somkiat and Giant, both of your replies got some great info.
Kudos to Hibernate team for giving such a popular open source framework.

Could some one please review what is Hibernate's strength compared to other ORM tools. What are its weakness if any?

Would these ORM tools be enough when a complex relationships such as one-to-many or many-many exist? Is it just recommended in cases where you have very simple Object to Relationship table mapping.

Originally posted by Neal Ford:
I cover Struts, Tapestry, WebWork, Velocity, InternetBeans Express, and Cocoon.
/////////////////////////////
This would be the most interesting to see..
//////////////////////////////
There is an entire chapter comparing and contrasting the frameworks, which highlights the situations where a particular framework is useful. The third part of the book provides best practices, in a real world setting, using Model 2 web applications to show how to handle common user interface requirements, performance tuning, resource management, debugging, testing, etc.
//

Hope that answers your questions.

20 years ago
Any one know which version of XDoclet generates action configs for newer java classes in struts like DispatchAction.
Thanks
Anand
20 years ago
Bert,
my mistake, I misunderstood the original question to be asking what is the correct answer? instead Bobby was asking for the reasoning behind e. being the correct answer. You explained it very well.
Anand
I am not sure whether any one answered Bobby or not, I think the answer e. is correct.

For the following question...
class I {
private String name;
public String toString() {return name;}
public I(String s) {name = s;}
}
class J {
private static void m1(I[] a1) {
a1 = null;
}
public static void main (String[] args) {
I[] a1 = new I[3]; // 1
a1[0] = new I("A"); // 2
a1[1] = new I("B"); // 3
a1[2] = new I("C"); // 4
m1(a1);
for (int i = 0; i < a1.length; i++) {
System.out.print(a1[i]);
}
}
}
After method m1 returns the objects on which of the following lines are eligible for garbage collection?
a. 1
b. 2
c. 3
d. 4
e. None of the above.
f. Compiler error.
g. Run time error.
h. None of the above.

I selected e which is correct. My reasoning was,
when method m1 is called, a copy of the array a1 is passed and set to null. But the original array a1 is still not null so its not eligible for garbage collection.
Is this line of reasoning okay ?
Thanks

No, For detailed info see the following link.
http://www.javaranch.com/certfaq.jsp#q10
Anand
Compilation error is present even when you comment instanceMethod() / im() from main(..).
One can not access instance variables without an instance. You can not access using the class context.
Anand
Did you guys find a mock exam, just for 1.4 programmer certification only. Thanks Andy.