Win a copy of Fixing your Scrum this week in the Agile forum!

rey anz

Greenhorn
+ Follow
since Nov 10, 2005
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 rey anz

The '&' operator evaluates both expressions while '&&' is a short circuit evaluator. Here first expression on evaluation gives 'false' and the second would throw an exception. When '&&' is used the first expression makes the result 'false' even without evaluation of the second expression("short-circuited"), but with '&' both sides are evaluated, hence an exception will be thrown.
You can override the hascode() method in a class so as to return same value everytime. Then using '==' on two different objects would result in true as they return the same value, so B is not correct.
A & E are correct, as for C it is incorrect because equals method is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
The first piece of code doesnt create any objects of the class hence the constructor is not called. This way only 'hello' would be printed. If you modified it a little bit using instead of now when the class is initialized, execution of any class variable initializers and static initializers of the class is also done. This will result in 'hai' printed first followed by 'hello'.
|| and && are shortcircuit operaters hence after evaluating (a=true) no (..) are evaluated and as a, b and c had been initialized to false, so the output is true false false which are the values for a, b and c respectively.
How can ajax be used in an existing application developed in weblogic workshop ? Does weblogic support it..is there any sample code available anywhere?

Thnx
15 years ago
i think line 20 should give a problem...not reached in execution.