- Joined
- Feb 23, 2012
- Messages
- 1
- Reaction score
- 0
why any variable that is intilised in main method in java doesnot print anything.infact it is given error..like
class r
{
public static void main(string a[])
{
int r;
system.out.println("r"+r); //error
}
}
class r
{
public static void main(string a[])
{
int r;
system.out.println("r"+r); //error
}
}