I want to know why it prints 0. On the other hand if I type int l2 = l1*this.width after the declaration of int width, it prints 100 as expected. Please anyone give me a clear cut explanation of the above code. I appreciate your help.
Regards, Jothi Shankar Kumar. S
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Thanks for the reply. I know that I havn't initialized width before I use it. But I want to know why when said int ll = l * this.width; int width = 10; gives no error and when said int ll = l * width; //gives error here???why??? int width = 10; gives an error? Please clarify this.