Java Classes Question:

How to convert .class file to .exe file?

Java Classes Interview Question
Java Classes Interview Question

Answer:

This is a very common question asked in the comp.lang.java newsgroup. Its often useful to have an executable application when deploying your applications to a specific platform, but remember to make your .class files available for users running Unix/Macintosh/other platforms.


Previous QuestionNext Question
What is the output of the following? // A simple example of recursion.class Factorial { // this is a recursive method int fact(int n) { int result; if(n==1) return 1; result = fact(n-1) * n; return result; }} class Recursion { public static void main(String args[]) { Factorial f = new Factorial(); System.out.println("Factorial of 3 is " + f.fact(3)); }}

A) Factorial of 3 is 3
B) Factorial of 3 is 6
C) Factorial of 3 is 9
D) None of the above
Explain java classes in detail?