Would it be more correct to say (as is used at times) java.lang.* (packaged) classes are imported automatically? Packages are never imported? Only class names inside those packages?java.lang package is imported automatically in all the classes.
[HD Pg 43, Sec. 2.4.1 - the-import-static-statement]
Moderator: admin
-
- Posts: 95
- Joined: Sat Dec 26, 2015 6:37 pm
- Contact:
[HD Pg 43, Sec. 2.4.1 - the-import-static-statement]
There are a number of statements such as the following:
-
- Site Admin
- Posts: 10396
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 43, Sec. 2.4.1 - the-import-static-statement]
It would be splitting hair because importing a package is a fairly common way of saying importing all classes of that package. Also, an even more technically precise statement would use "type" i.e. all "types" are imported (not just classes).
Who is online
Users browsing this forum: Google [Bot] and 9 guests