Question asks which lines of code would not be acceptable to the compiler - can only select two options.import java.*; //1
public abstract class InternalLogic //2{
float density = 20.0; //3
public class Doer //4{
void do() //5{
//lot of valid code.
}
}
}
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 {