The largest Interview Solution Library on the web


java tutorials/
« Previous | 1 | 2 | 3 | Next »

Example - Anonymous Inner Class


someMethod()
{
// some normal code here...
AccessController.doPrivileged(new PrivilegedAction()
{
public Object run()
{
// privileged code goes here, for example:
System.loadLibrary("awt");
return null; // nothing to return
}
}
);
// some normal code here...
}
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com