Page 1 of 1

About Question enthuware.ocajp.i.v7.2.943 :

Posted: Thu Aug 02, 2012 3:01 am
by dtchky
import java.*; //1
public abstract class InternalLogic //2{
    float density = 20.0; //3
    public class Doer //4{
        void do() //5{
            //lot of valid code.
        }
    }
}
Question asks which lines of code would not be acceptable to the compiler - can only select two options.
Just wondering if the question only needs 2 out of the several errors present, or if there might be some misplaced comment tags?

Cheers.

Edit: Just an update, from the answers it looks like the comment tags are misplaced for lines 2, 4, and 5. Assume they are on the right side of the {

Re: About Question enthuware.ocajp.i.v7.2.943 :

Posted: Fri Aug 03, 2012 8:59 pm
by admin
You are right. The brackets are misaligned. Should be fixed asap.

thank you for your feedback!