Register Login
Internet / AI Technology University (ITU/AITU)
Created by info@itofthefuture.com
Welcome Anonimous.User to this quiz related to Java Security.

Read the question and choose correct answers. Time is limited to 40 seconds!

Important! Do not forget to rank the quality of the question (from bad to excellent).
An initiator of the quiz will get royalty score for QnAs created by her/him and can win the Top Creativity Prize.
Question:
When does JVM have an instance of the SecurityManager class?

When running applet within Java Plugin.



When -Djava.security.manager option is specified.



JVM instantiates SecurityManager on the first attempt of execution of secure operation (for example, working with files, network ...)

Explanantion
Objective: Security manager in J2EE applications
After calling System.setSecurityManager() method.
When running applet within Java Plugin.
When -Djava.security.manager option is specified.
System.setSecurityManager(SecurityManager sm) method sets the system security manager to the given object. When you specify the -Djava.security.manager option to a Java application, the virtual machine executes the setSecurityManager( ) method on your behalf, before it calls the main( ) method of your application.
The Java Plug-in and appletviewer use a modified implementation and install it before they load any applets.



After calling System.setSecurityManager() method.



JVM 1.2 and higher always has an instance of SecurityManager.



Rank the Quality of the Question from "-10" (bad) or "0" (not clear) to 10 (correct) or even 20 (very good!)
-10 (bad/wrong) 0 (not clear) 10 (correct) 20 (very good!)
Your summary report will be available to you and your instructor. Thank you for your work!!!