Which method is called first by an applet program?
(A) start( )
(B) run( )
(C) init( )
(D) begin( )
Answer: (C)
Explanation: Life cycle of an applet :
It is important to understand the order in which the various methods shown in the above image are called. When an applet begins, the following methods are called, in this sequence:
1. init( )
2. start( )
3. paint( )
So, option (C) is correct.
Quiz of this Question
Article Tags :
Recommended Articles