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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
alkour
Posts: 31
Joined: Tue Mar 24, 2015 2:59 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 9020
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

1. Because it is invalid. Rule of Java language.
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.

alkour
Posts: 31
Joined: Tue Mar 24, 2015 2:59 pm
Contact:

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

Post 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.

alkour
Posts: 31
Joined: Tue Mar 24, 2015 2:59 pm
Contact:

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

Post by alkour »

Could you state what is invalid?

admin
Site Admin
Posts: 9020
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

alkour
Posts: 31
Joined: Tue Mar 24, 2015 2:59 pm
Contact:

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

Post by alkour »

Sorry. Does not look carefully. I mixed package statement with import statement.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests