Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Applet
« Previous
Next »
Which method is used to start the applet?
Options
- main()
- destroy()
- init()
- repaint()
CORRECT ANSWER : init()
Discussion Board
MCA
i like the test.
this helps me lot to know about java.
Finals Thomas 03-2-2015 09:09 AM
init() method
The init() method is used in the beginning to start the applet and it is started by the browser when the Java program (My.class) is loaded and run by the browser. The programmer does not write a call to the init() method. init() method consists of no statements and it is written inside the Applet class. The class or any execution starts with this init() method call. JApplet class is a subclass of the Applet class, and My is a subclass of the JApplet class. This means that the init() method is not a custom method but is built-in to Java.
Rohit Sharma 09-27-2014 03:01 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲