SCJP 1.4 (86%)<br />SCWCD 1.4 (86%)<br />----------<br />If You dont succeed at first time,call it Version 1.0 !!!
...ToucH SkieS
AKASH
SCJP 1.4 86%
SCWCD 1.4 82%
SCJP 1.4 (86%)<br />SCWCD 1.4 (86%)<br />----------<br />If You dont succeed at first time,call it Version 1.0 !!!
SCJP 1.4 (86%)<br />SCWCD 1.4 (86%)<br />----------<br />If You dont succeed at first time,call it Version 1.0 !!!
SCJP 1.4 (86%)<br />SCWCD 1.4 (86%)<br />----------<br />If You dont succeed at first time,call it Version 1.0 !!!
Originally posted by sarang bharambe:
Thats fine guys...
But you all are explaining the flow at runtime
and my post asks for the flow during compilation.
I guess the possible flow is:
1.The compilation of SuperClass starts
2.when It Comes to the line
SubClass s1=new SubClass();
then the compiler try to find the Class file SubClass.class
3.If SubClass.class is not found and SubClass.java is found then
it gets compiled(or else the error is shown as Cannot resolve symbol)
4.Then the compilation of SuperClass is starts from next line.
If this is the possible flow then my question is
WHILE COMPILING THE SubClass.java WHAT HAPPENES AT THIS LINE?
public class SubClass extends SuperClass
for SubClass to extend SuperClass,where does the compiler finds the .Class file for SuperClass( which is not generated yet)? or is it not necessary at compile time?
I hope someone will respond logically
where are all the wise men gone???
regards
sarang
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|