ExamVeda
Login
Home
Server Side and Client Side Scripting
?

Which is a more formal way of importing packages and classes as JavaScript objects?

Answer & Solution
Correct Answer: Option B
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
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.