Thursday, 21 March 2013

What is the lifecycle of an applet?


What is the lifecycle of an applet?  
init() method Can be called when an applet is first loaded start() method Can be called each time an applet is started. paint() method Can be called when the applet is minimized or maximized. stop() method Can be used when the browser moves off the applet’s page. destroy() method Can be called when the browser is finished with the applet.



Blog Author: Vijay Kumar

How do you set security in applets?


How do you set security in applets?  
using setSecurityManager() method

Blog Author: Vijay Kumar


Tuesday, 19 March 2013

What are inner class and anonymous class?


What are inner class and anonymous class?  
Inner class : classes defined in other classes, including those defined in methods are called inner classes. An inner class can have any accessibility including private. Anonymous class : Anonymous class is a class defined inside a method without a name and is instantiated and declared in the same place and cannot have explicit constructors.

Blog Author: Vijay Kumar


What is a package?


What is a package?  
A package is a collection of classes and interfaces that provides a high-level layer of access protection and name space management.

Blog Author: Vijay Kumar


What is a reflection package?


What is a reflection package?  
java. lang. reflect package has the ability to analyze itself in runtime.

Blog Author: Vijay Kumar