As far as i know, that local variables need to be explicitly
initialized, until i tried out the foll. example :
1.class
test 2.{
3.public static void main(
String args[])
4.{
5. int a = 12,b;
6. System.out.println("Hello");
7.
8. int i = new test().aName();
9. System.out.println( i );
10.}
11. public int aName()
12. {
13. int y=9,x;
14. return y;
15. }
16.}
At line 13, i am not initializing variable x, why is it allowed ?