Can Applet have constructors?

Answer Posted / rohit chhabra

usualy applets hv no contructors coz we do't need to create
object of the applet class...
but if one wants to create an object of an applet class,
create it in static block...This block execute before init
method..

Is This Answer Correct ?    45 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we able to pass objects as an arguments in java?

530


What is final int?

529


Is ++ operator is thread safe in java?

517


Explain different states of a thread in java?

581


Why do we use variables?

511






What are the types of inner classes (non-static nested class) used in java?

562


How do you get length in java?

557


How are observer and observable used in java programming?

543


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

600


For class CFoo { }; what default methods will the compiler generate for you>?

619


What is the use of coding?

519


How do you add an arraylist to an array in java?

507


What are dot operator queries?

625


What is collection class in java? List down its methods and interfaces.

529


Why is java multithreaded?

537