Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default packages in java

 
Shaan patil
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Ranchites,

I want to know what are the default packages which do not need class path setting in java (Ofcourse other than java.lang , java.Math , java.Strings package?


Regards
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Classes in the standard API don't need to be included in the classpath. java.lang classes are the only ones that don't need an import statement
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic