Page 1 of 1

About Question enthuware.ocajp.i.v8.2 . 1063 :

Posted: Wed Apr 01, 2015 4:15 am
by alkour
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.

Re: About Question enthuware.ocajp.i.v8.2.1063 :

Posted: Wed Apr 01, 2015 5:42 am
by admin
1. Because it is invalid. Rule of Java language.
2. Yes, if you have all tjose classes in com package.

Re: About Question enthuware.ocajp.i.v8.2.1063 :

Posted: Wed Apr 01, 2015 6:58 am
by alkour
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.

Re: About Question enthuware.ocajp.i.v8.2.1063 :

Posted: Wed Apr 01, 2015 6:59 am
by alkour
Could you state what is invalid?

Re: About Question enthuware.ocajp.i.v8.2.1063 :

Posted: Wed Apr 01, 2015 7:32 am
by admin
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.

Re: About Question enthuware.ocajp.i.v8.2 . 1063 :

Posted: Wed Apr 01, 2015 9:06 am
by alkour
Sorry. Does not look carefully. I mixed package statement with import statement.