+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

Java Applets Interview Questions and Answers


1
What is an applet?

Applet is a program which can get downloaded into a client environment and start executing there.

2
Explain how to implement an applet into a web page using applet tag

To view an applet in the browser, following steps need to be followed:
Compile the applet you have written … the .java file so as to get the .class file.

Then, include the following code in your .html file:

3
What type of sound file formats can I use for the applets?

Java v1.02 only supports the "voice format" of the .au sound files. This is also know as "-law, 8/16-bit, mono, 8000hz sample rate"

4
What is the difference between an Applet and an Application?

An applet runs with the control of a browser, where as an application runs standalone. The application runs with the support of a virtual machine.
An applet has restrictions with respect to network access, whereas the application does not. Interactive and dynamic applications can be used with applet. A java application can have full access to network and local file system.

5
How will you establish the connection between the servlet and an applet?

Using the URL, I will create the connection URL. Then by openConnection method of the URL, I will establish the connection, through which I can be able to exchange data.

Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US