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
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){}
The correct answer A
public class Boot {
public static void main(String[] args) {
System.out.println("I float.");
}
}
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.1z0-808 Exam Questions
Log in to ExamTopics
Sign in:
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.
JoseCG
Highly Voted 4 years, 1 month agodya45792
Highly Voted 3 years, 11 months agoWeeChungus
Most Recent 6 months, 1 week agoVicky_65
8 months agoCreazyyyyGirl
8 months, 3 weeks agocarloswork
1 year, 1 month agoshivkumarx
1 year, 2 months agoprabhatrai17
1 year, 7 months agoAnupam_Anand
1 year, 10 months agocarloswork
1 year, 1 month agoabhi7597
2 years, 1 month agoHarid
3 years, 3 months agoandreolo
3 years, 3 months agokrzysiekprzybylak
2 years, 9 months agobrianhuang881215
2 years, 3 months agoSamAru
3 years, 5 months agoZafar_Nasim
3 years, 6 months agolevilevi
3 years, 4 months agov323rs
3 years, 10 months ago