exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 77 discussion

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

Which one of the following code examples uses valid Java syntax?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
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
JoseCG
Highly Voted 3 years, 7 months ago
Correct.
upvoted 11 times
...
dya45792
Highly Voted 3 years, 5 months ago
Antwort A , ist richtig public static void main(String[] args) { System.out.println(" I float. "); } }
upvoted 8 times
...
WeeChungus
Most Recent 2 weeks, 3 days ago
A is correct, but also C. While C is not having the 'correct' static void main method, but the syntax itself is correct - which is asked. The question itself leads to answer A and C
upvoted 2 times
...
Vicky_65
2 months, 1 week ago
Selected Answer: A
A is correct
upvoted 1 times
...
CreazyyyyGirl
3 months ago
Selected Answer: A
Correct
upvoted 1 times
...
carloswork
7 months, 3 weeks ago
Selected Answer: A
Answer is A.
upvoted 1 times
...
shivkumarx
9 months ago
A is correct, C is not because there are round brackets after String - they should be square like A
upvoted 1 times
...
prabhatrai17
1 year, 1 month ago
Selected Answer: A
only option A is correct. main method must be static. option C can't be right. since question itself asking choose one example that is valid.
upvoted 1 times
...
Anupam_Anand
1 year, 4 months ago
C is also correct what is wrong with C.
upvoted 2 times
carloswork
7 months, 3 weeks ago
It has to be "static" otherwise it is treated as a normal method of the class, not a method for running the class. So, needs to be - public static void main (String[] args){}
upvoted 2 times
...
...
abhi7597
1 year, 8 months ago
the Correct Answer is A and C because in C you can define main method without static in it.
upvoted 4 times
...
Harid
2 years, 9 months ago
Anwer is A, C
upvoted 4 times
...
andreolo
2 years, 10 months ago
What is wrong with c?
upvoted 4 times
krzysiekprzybylak
2 years, 4 months ago
Nothing A,C are correct
upvoted 1 times
...
brianhuang881215
1 year, 9 months ago
brilient
upvoted 1 times
...
...
SamAru
2 years, 11 months ago
Correct, its A
upvoted 1 times
...
Zafar_Nasim
3 years ago
A is correct,but C also follows correct syntax.If main is not static then it is treated just like any other method.
upvoted 6 times
levilevi
2 years, 10 months ago
Yes I checked C it's correct too.
upvoted 2 times
...
...
v323rs
3 years, 5 months ago
The correct answer A public class Boot { public static void main(String[] args) { System.out.println("I float."); } }
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago