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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
dtchky
Posts: 19
Joined: Wed Aug 01, 2012 3:11 am
Contact:

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

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

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

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

Post by admin »

You are right. The brackets are misaligned. Should be fixed asap.

thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 134 guests