Andy Peter

+ Follow
since Dec 26, 2002
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
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.
20 years ago
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.
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
for (int i = 0; i < a1.length; 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 ?

No, For detailed info see the following link.
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.
Did you guys find a mock exam, just for 1.4 programmer certification only. Thanks Andy.