Win a copy of Spring Boot in Practice this week in the Spring forum!

jayanthi

Greenhorn
+ Follow
since Sep 15, 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 jayanthi

hi hema,
congrates!
u said u have 50 questions on thread and gc ...
can u pls post it to me.
thanks
jayanthi
HI TONY,
DO u have ur web site???
can u pls let us know???
jayanthi

program no:1
___________________
public class testfinal{
public static void main(String args[]){
final int i = 5;
System.out.println(++i);
}
}
________________________
program no:2
_________________________
public class testfinal{
public static void main(String args[]){
final int i[] = {5};
System.out.println(++i[0]);
}
}
_________________________

here both the program 1 and 2 is not supposed to work because we have declared i as final. but program 2 works fine without any complainat and prints the reult as 6...why???
help me to understand it
thanx....
jayanthi
HI,
pls post the zip files to me too.
jayan_k_99@yahoo.comm
thanx....bye jayanthi
with +=, ++ cast is automatic
i think so...
jayanthi
I tried with the following code and it prints "working nice"
public class lessthan_or_equalto{
public static void main(String args[]){
int i = 5;
int j = 5;
if(i<=j){
System.out.println("working nice");
}
}
}
can anybody tell me about the CLASSPATH...
THANX ...JAYANTHI
when +=,++ is used cast is automatic
hi
im also preparing for SCJP...
i want to give the exam in the 3rd week of OCT.
pls include me in ur group.
bye...jayanthi
jayan_k_99@yahoo.com