By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,541 Members | 1,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,541 IT Pros & Developers. It's quick & easy.

Is applets are Interpreted programs?

P: n/a
Hello to all,

I am newbie to java. Is java applets are interpreted programs or just
compiled programs that runs in
java supported web browsers.

I know for sure java applications are interpreted applications.because

javac is a compiler that converts source code into Bytecodes.
java is a interpreter(JVM) that executes Bytecodes.

If my above information is wright then for applets we are only using
javac , so can i say that it is just
a compiled programs and not interpreted.

Please help me is java applet is really interpreted. If yes , How is
that?

thank you in advance,
Vishnu Mahendra
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi Vishnu,

A Java applet is interpreted just like a Java application. The only main
difference between an application and an applet are:

- An application has a main() method that is called by the JVM.
- An applet is launched by the browser; a JVM calls the init() method.

Unless it's compiled into a native executable, any Java program, applet
or application, is interpreted.

Joe

vishnu mahendra wrote:
Hello to all,

I am newbie to java. Is java applets are interpreted programs or just
compiled programs that runs in
java supported web browsers.

I know for sure java applications are interpreted applications.because

javac is a compiler that converts source code into Bytecodes.
java is a interpreter(JVM) that executes Bytecodes.

If my above information is wright then for applets we are only using
javac , so can i say that it is just
a compiled programs and not interpreted.

Please help me is java applet is really interpreted. If yes , How is
that?

thank you in advance,
Vishnu Mahendra

Jul 17 '05 #2

P: n/a

"Joe Attardi" <jo*@majere.org> wrote in message
news:G74Hc.43299$IQ4.1465@attbi_s02...
Hi Vishnu,

A Java applet is interpreted just like a Java application. The only main
difference between an application and an applet are:

- An application has a main() method that is called by the JVM.
- An applet is launched by the browser; a JVM calls the init() method.

Unless it's compiled into a native executable, any Java program, applet
or application, is interpreted.

Joe

vishnu mahendra wrote:
Hello to all,

I am newbie to java. Is java applets are interpreted programs or just
compiled programs that runs in
java supported web browsers.

I know for sure java applications are interpreted applications.because

javac is a compiler that converts source code into Bytecodes.
java is a interpreter(JVM) that executes Bytecodes.

If my above information is wright then for applets we are only using
javac , so can i say that it is just
a compiled programs and not interpreted.

Please help me is java applet is really interpreted. If yes , How is
that?

thank you in advance,
Vishnu Mahendra


You never heard of the Hotspot technology?

Silvio Bierman
Jul 17 '05 #3

P: n/a
Joe Attardi <jo*@majere.org> wrote in message news:<G74Hc.43299$IQ4.1465@attbi_s02>...
Hi Vishnu,

A Java applet is interpreted just like a Java application. The only main
difference between an application and an applet are:

- An application has a main() method that is called by the JVM.
- An applet is launched by the browser; a JVM calls the init() method.

Unless it's compiled into a native executable, any Java program, applet
or application, is interpreted.

Joe


Hello Mr.Joe,

Thank you for your help.

bye,

Vishnu Mahendra
Jul 17 '05 #4

P: n/a
Joe Attardi wrote:
Unless it's compiled into a native executable, any Java program, applet
or application, is interpreted.


Just to clarify, "interpreted" in the case of Java means that Java
bytecode is interpreted by the virtual machine. This bytecode first has
to be generated by the Java compiler. This is not to be confused with
"interpreted" in the sense that the source code is directly interpreted
at run-time.
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.