Java Applet Programming Interview Questions and Answers

Java Applet Questions and Answers:

1 :: 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"
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

2 :: Why do you Canvas?

The Canvas class of java.awt is used to provide custom drawing and event handling. It provides a general GUI component for drawing images and text on the screen. It does not support any drawing methods of its own, but provides access to a Graphics object through its paint() method. The paint() method is invoked upon the creation and update of a canvas so that the Graphics object associated with a Canvas object can be updated.
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

3 :: What is Difference between AWT and Swing?

Swing provides a richer set of components than AWT. They are 100% Java-based. AWT on the other hand was developed with the mind set that if a component or capability of a component werent available on one platform, it wouldnt be available on any platform. Due to the peer-based nature of AWT, what might work on one implementation might not work on another, as the peer-integration might not be as robust. There are a few other advantages to Swing over AWT:

► Swing provides both additional components and added functionality to AWT-replacement components
► Swing components can change their appearance based on the current "look and feel" library that's being used.
► Swing components follow the Model-View-Controller (MVC) paradigm, and thus can provide a much more flexible UI.
► Swing provides "extras" for components, such as:
► Icons on many components
► Decorative borders for components
► Tool tips for components
► Swing components are lightweight (less resource intensive than AWT)
► Swing provides built-in double buffering
► Swing provides paint debugging support for when you build your own components

Swing also has a few disadvantages:
► It requires Java 2 or a separate JAR file
► If you're not very careful when programming, it can be slower than AWT (all components are drawn)
► Swing components that look like native components might not act exactly like native components
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

4 :: What is the base class for all swing components?

JComponent (except top-level containers)
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

5 :: How do you communicate in between Applets and Servlets?

We can use the java.net.URLConnection and java.net.URL classes to open a standard HTTP connection and "tunnel" to the web server. The server then passes this information to the servlet in the normal way. Basically, the applet pretends to be a web browser, and the servlet doesn't know the difference. As far as the servlet is concerned, the applet is just another HTTP client.
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

Rate This Category:
0/5 Rating (0 vote)
Place Your Question



Top: Java Applet Programming
 Interview Questions and Answers
Java Applet Programming
 Interview Questions and Answers

Top Frequently Asked Java Applet Question
Frequently Asked Java Applet Job Interview Question


Top Frequently opened Java Programing Job Interview categories
Most popular Java Programing Job Interview categories

Comments About Java Applet Programming Interview Questions and Answers

Share your valuable opinions, ideas and suggestions about Java Applet Programming Interview Questions and Answers
While placing your comment your email address is required but won't be published any where else; Personal information will be kept confidential; we do not sell or release our respective visitors private information.
  1. Webmaster 22nd of May 2012

    Webmaster Said

    Tell us what you feel about Java Applet Programming Interview Questions and Answers
    All comments will be published after review. No login or registration is required to post a comment on Java Applet Programming Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
    So start sharing your thoughts regarding Java Applet Programming Interview Questions and Answers
    Thank you.

Leave a Comment

Leave a Comment
  1.  Enter This Verification Code  Regenerate Verification Code  



Your reply will be added to the comment above (Below any other replies to this comment) -

Top Comments About: Java Applet Programming
 Interview Questions and Answers
Comments on Java Applet Programming
 Interview Questions and Answers

 
Top of Link batk to Java Applet Programming
 Interview Questions and Answers
Link batk to Java Applet Programming
 Interview Questions and Answers