import static java.lang.System.*;
Posted: Tue Mar 27, 2018 11:23 pm
Although i got my answer right because 3 incorrect options started with "static import...", i am not clear with why option import static java.lang.System.*; is correct.
Also clear that we have to import all static elements of that class or explicitly mention the member name like
static java.lang.Integer.MAX_VALUE.
But what is significance of import static java.lang.System.*;
Also clear that we have to import all static elements of that class or explicitly mention the member name like
static java.lang.Integer.MAX_VALUE.
But what is significance of import static java.lang.System.*;