Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Sugat Thulkar

Greenhorn
+ Follow
since Nov 16, 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 Sugat Thulkar

Hello Friends !
you are going near
Here is one more CLUE
In switch construct we can use only CONSTANTS in case statements
But any variable is allowed there? NO!
But you can use expressions involving only constants
Like 3+2 etc
TRY HARD!!
luv SUGAT
Hello Friends !
you are going near
Here is one more CLUE
In switch construct we can use only CONSTANTS in case statements
But any variable is allowed there? NO!
But you can use expressions involving only constants
Like 3+2 etc
TRY HARD!!
luv SUGAT
String one= "Hello";
String two= "Hell"+"o";
bolean answer = one==two;
Now u will think the answer should be false but no! if u check it out it will TRUE? whats the reason behind this
I Knon the answer! Do u?
In java 1.1 and before java 1.2 if the main method was not public static then compiler gave erreor message.
in java 1.2 and above u can give any access modifer to main method coz it is entry point method for your code. This is possible because a new class is added in java2 AccessibleObjects which only jvm can use. this class allow to bypass the access modifier for main method only if it is STATIC & VOID main(String argas[]) Note any other defination will not be considered as entry point method