Sudhir Thorat

Greenhorn
+ Follow
since Dec 27, 2000
Merit badge: grant badges
For More
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 Sudhir Thorat

Can anybody give me a good source for the notes on the java.io package. Looks like we have to byheart a lot of things in this package as well as the java.util package.
Any good way to study about these things? a lot of theoretical stuff!!
To quote khalid (page 88)
"This default initialization does not apply to the local reference variables and therefore doesnot apply to local arrays as well."
My understanding is that it means local arrays get initialized to the default values only after they are constructed and not just after being declared as is the case with instance and static arrays.
Let me know if this is right.
Thanks
==
What happens when you compare different primitive types other than int?
e.g.:
int i=123;
char c='1';
float f=1.0f;
if (f==c)
{ System.out.println("float 1= char 1);
}
if (123*f==i)
{stuff here
}
}
of the super class of the enclosing class?
Does this mean that the following statements
public class Postincrement{
public static void main(String args[]){
i=0;
i=i++ + i++;
System.out.println(i) ;
}
}
would print 0 but the value of the variable i is 2 ?
Thanks
Sudhir