Hi Anupama.
boolean b;
boolean b1=false;
these both statement will result in value false assigned to these variables.
But if these variables are local variables of a method then the variables are not initialized to their default values so if u declare a variable within a method u have to explicitly initialize it.
If the variable is instance/class variable of a class then it is automatically assigned the default value. Default value for boolean type is false.
I hope it helps.
Neeraj Thakkar
------------------
Neeraj Thakkar
Sun Certified Programmer for
Java 2 Platform