|
[SOLVED] Why import isnt needed whn ref is used without storing to local variable
Hello, Guys
This is my first thread to the Forum....
Consider this statement
System.getProperties().getProperty("propertyname") ;
for this statement import of java.util.Properties is not required, but we are using method of Properties
but it will required for this statements.
Properties props = System.getProperties();
props.getProperty("propertyname");
Whats the reason??
Regards,
Nachiket
|