Weird question out of curiosity. Does anyone know how does JVM handle float and the internal details for storing and doing arithmetic Thanks in advance
When we call a non static method from static method, it has to be associated to an object if it's not associated to an object, compiler will throw an error.
consider the example
It will throw an error. if we mark method A declaration as static, the code will compile. the other way is create an instance and call methodA using dot operator.
Hi Chetan Thanks for the notes. I cleared my SCJP in Feb, refered ur notes and found them good specially Threads. Friends, Notes are must read for Threads Thanks Chetan Ashish
Hi Rahul JLS clearly says forward referencing not possible in case of variables but possible for methods. In short one cannot have forward reference variables but can have forward reference methods Hope this helps Ashish