Topic: 什么是基础包什么是子包

  Print this page

1.什么是基础包什么是子包 Copy to clipboard
Posted by: useforever
Posted on: 2007-09-13 21:06

什么是基础包什么是子包

2.Re:什么是基础包什么是子包 [Re: useforever] Copy to clipboard
Posted by: JiafanZhou
Posted on: 2007-09-13 21:30

Hi useforever,

You can think about the "package" concept as the "directory" in the operating system. A common parent package will contain various of sub-packages, with each package at the same level must have a unique name but not globally.

To answer your earlier question:

1) java.lang package is a frequently used package in the JAVA language. So it is the very basic package and it is so basic that the JVM will automatically import it into your program.

2) Sub packages are those in a common package who contains them. A sub package can have one and only one parent package. right?

Hope this helps your understanding in JAVA.

Regards,
Jiafan


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923