Which is a more formal way of importing packages and classes as JavaScript objects?
A. import(java.util.*);
B. importClass(java.util.*);
C. import.Class(java.util.*);
D. Class.import(java.util.*);
Answer: Option B
Solution(By Examveda Team)
Because packages and classes are represented as JavaScript objects, you can assign themto variables to give them shorter names. But you can also more formally import them, if you want to:importClass(java.util.HashMap); // Same as : var HashMap = java.util.HashMap
Related Questions on Server Side and Client Side Scripting
What are the events generated by the Node objects called?
A. generators
B. emitters
C. dispatchers
D. highevents
What is the function used to deregister event handler ‘f’?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
What is the function used to remove all handlers for name events?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
Join The Discussion