Question 11 / 297:  Which of the instantiations for a Engine are correct and compile-free?
Choose 3
public class AirJet {

public static void main(String[] args) {

// instantiation 1

Engine engine1 = new AirJet().new Engine();

// instantiation 2

AirJet.Engine engine2 = new AirJet().new Engine();

// instantiation 3

AirJet airjet = new AirJet();

Engine engine3 = airjet.new Engine();

// instantiation 4

Engine engine4 = new Engine();

}

class Engine{

}

}

<< First < Previous Next > Last >>
Exam Home Page
Ask
Madison Christian
Start Flashcards
Anonymous User
Start Quiz
Edgar Delgado
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/java-certification-questions" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>