Java Applet Programming Question:
Download Questions PDF

How do we read number information from my applets parameters, given that Applets getParameter() method returns a string?

Answer:

Use the parseInt() method in the Integer Class, the Float(String) constructor or parseFloat() method in the Class Float, or the
Double(String) constructor or parseDoulbl() method in the class Double.

Download Java Applet Interview Questions And Answers PDF

Previous QuestionNext Question
Can we pass parameters to an applet from HTML page to an applet? How?How can I arrange for different applets on a web page to communicate with each other?