What is the result?

Given:

And given the commands:
javac Test.java
java Test
What is the result?

Given:

And given the commands:
javac Test.java
java Test
What is the result?

A.
Java SE

B.
Java EE

C.
Compilation fails at line n1.

D.
A NullPointerException is thrown at runtime.



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Maxtor

Maxtor

Test copilation fail in declaration of checkLimit…
C option is also correct.

v10

v10

B is the correct answer

Sucuk

Sucuk

Tested: B correct answer. Tested in Eclipse where i first got an error on checklimit but Eclipse corrected it for me. I also tested in two online Java compilers and it compiled without problem.

jeronimo

jeronimo

YO DIRIA LA D NULL POINT,
PORQUE NO SE LE ESTA PASANDO NINGUN PARAMETRO AL ARG.

Bob

Bob

B, if you are entering no arguments then the default value will be 0, and due to 0 > MIN is false its printed EE.