Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

cics

Greenhorn
+ Follow
since Jun 14, 2000
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 cics

A small clarification needed in the Paul's explanation above.
As understood by me form Paul's explanation. For the below decls.
String a = "aaaa";
String b = "aaa" + "a";
String c = "a"
String d = c + "aaa";
(a == b) should be false acc to explanation .....But actually it is returning TRUE.
and
(a == d) is returning FALSE.
Please someone acknowledge if I am right/wrong ???
cics


Thanks for all,
But before I close this posting can I assume to tick all the (b,c,d) as my answers to the above Q from exam point of view.
Reply if I am wrong.
cics.

Originally posted by cics:
hello all,
which of the following declarations about main are incorrect, select all possible ans.
a) public static void main(String args[])
b) private static void main(String args[])
c) protected static void main(String args[])
d) public static void Main(String args[])
I know all the first 3 statements go thru without errors. But from the certification point of view what should be my ans ie. either (b,c,d) or just "d"
Thanks.


Hi...hope U misunderstood the Q, My Q is which are INCORRECT.
Please provide ans now.
Thanks for U'r time.
Hello,
why am I getting ClassCastException when I execute my pgm which performs downcasting as show below.
cow = (Cow) animal;
as the naming imply,Cow is a subclass which extends Animal class.
cow and animal are instance vars.
Thanks.
21 years ago
hello all,
which of the following declarations about main are incorrect, select all possible ans.
a) public static void main(String args[])
b) private static void main(String args[])
c) protected static void main(String args[])
d) public static void Main(String args[])
I know all the first 3 statements go thru without errors. But from the certification point of view what should be my ans ie. either (b,c,d) or just "d"
Thanks.