Saturday, 19 March 2016
Can I import same package/class twice? Will the JVM load the package twice at runtime ?
Yes
, One can import the same package or same class multiple times.
Neither compiler nor JVM complains about it and the JVM will internally
load the class only once
no matter how many times you import the same class.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.