exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 39 discussion

Actual exam question from Oracle's 1z0-808
Question #: 39
Topic #: 1
[All 1z0-808 Questions]

Given:

And given the commands:

What is the result?

  • A. Success
  • B. Failure
  • C. Compilation fails.
  • D. An exception is thrown at runtime
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
vic88
7 months, 1 week ago
Selected Answer: A
A is correct
upvoted 1 times
...
MPignaProTech
8 months, 1 week ago
Selected Answer: A
A is correct
upvoted 1 times
...
GaelBernard
2 years, 2 months ago
Selected Answer: A
I tried and it's indeed possible to run bytecode using "Java MyClass" instead of "java MyClass". Therefore, C is wrong.
upvoted 3 times
...
Vicky_65
2 years, 3 months ago
Selected Answer: A
A is correct
upvoted 2 times
...
jjgry
2 years, 3 months ago
Selected Answer: A
Code will compile and run successfully
upvoted 1 times
...
Ankit1010
2 years, 4 months ago
Javac or javac Java or java can be used. So, correct answer is A - Success
upvoted 1 times
...
TheoKamp
2 years, 7 months ago
Look at the second command is Java Test Hello with a capital J this not compile
upvoted 2 times
[Removed]
2 years, 6 months ago
I checked this case, but If we pass java command with capital letter, it is finely compiled and run
upvoted 1 times
...
...
anmoldev2java
2 years, 7 months ago
Selected Answer: C
Java is used ... but we need to use java command to run
upvoted 2 times
...
kkaayyyy
2 years, 9 months ago
A. Success is the right answer. When we compare the content of args[0] with "Hello" we satisfy the first IF condition - SUCCESS
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...