what is order of compiling a class in java
<p>what is order of compiling a java class in JVM as below example    </p>

<pre><code>import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;



 public class FindoutDtDiff {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        DateFormat df = new SimpleDateFormat ("dd-MMM-yyyy");
        long days=0;
        try {
            Date oldDate=df.parse("31-Mar-2011");
            Date newDate=df.parse("01-May-2011");
            days=((oldDate.getTime()-newDate.getTime())/(24*60*60*1000));
            System.out.println(days);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }


    }

 }
</code></pre>

<p>In the above example ,when the class will be intializied and what order to compile above class from import onwards?.</p>
