View Single Post
  #1 (permalink)  
Old 03-28-2008, 01:46 PM
N_i_X N_i_X is offline
Member
 
Join Date: Mar 2008
Posts: 2
N_i_X is on a distinguished road
[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
Reply With Quote
Sponsored Links