1. Why explanation part states that com.enthu.rad.* bad syntax and (*) is not allowed for package statements.
2. Is it enough only one - import com.*; statemenet to import all classes: Helper.class, Util.class and Stock.class.
About Question enthuware.ocajp.i.v8.2 . 1063 :
Moderator: admin
-
- Posts: 30
- Joined: Tue Mar 24, 2015 2:59 pm
- Contact:
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1063 :
1. Because it is invalid. Rule of Java language.
2. Yes, if you have all tjose classes in com package.
2. Yes, if you have all tjose classes in com package.
If you like our products and services, please help us by posting your review here.
-
- Posts: 30
- Joined: Tue Mar 24, 2015 2:59 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1063 :
I mean for com.* is allowed to use (*) and for com.enthu.rad.* is not allowed to use (*). rad is folder and contain other class.
-
- Posts: 30
- Joined: Tue Mar 24, 2015 2:59 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1063 :
Could you state what is invalid?
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1063 :
The part that you asked about! : "1. Why explanation part states that com.enthu.rad.* bad syntax and (*) is not allowed for package statements."
package com.enthu.rad.*; is invalid.
package com.enthu.rad.*; is invalid.
If you like our products and services, please help us by posting your review here.
-
- Posts: 30
- Joined: Tue Mar 24, 2015 2:59 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2 . 1063 :
Sorry. Does not look carefully. I mixed package statement with import statement.
Who is online
Users browsing this forum: No registered users and 114 guests