• Post Reply Bookmark Topic Watch Topic
  • New Topic

differences in properties for javamail  RSS feed

 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i was reading a javamail tutorial, and they mentioned getting properties in order to use them as arguements to sessions. The code they gave initially was :

Properties props=new Properties();

later on , in another part they used

Properties props=system.getProperties(); Please whats the difference

between the two cause im confused.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best way to find out the difference would be to examine their contents. A new Properties object will be empty; one obtained from the System includes the system properties. Further details are in the javadocs for System.getProperties.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!