A is correct, you cannot have a boolean, double or long in a switch statement thus B is incorrect. C would result in the default statement being printed out
Antwort B ergibt kein sinn , also es muss ein String sein , und bei C und D auslassen oder nicht kommt nur ; DONE raus
public static void main(String[] args) {
String opt = " true";
switch (opt) {
case "true":
System.out.print("True");
// break;
// default:
System.out.print("***");
}
System.out.println("Done");
}
}
also nur Done / oder ?
upvoted 1 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.
M_Jawad
Highly Voted 5 years, 6 months agovic88
Most Recent 7 months, 2 weeks agoarjunrawatirissoftware
1 year, 9 months agoduydn
1 year, 10 months agoSreeni_A
1 year, 10 months agosylwia000001
2 years, 2 months agosylwia000001
2 years, 2 months agoVicky_65
2 years, 3 months agohexadecimal82
3 years agoMthlagi
3 years, 4 months agoalexandrustefanescu
4 years agoFuego_412_
4 years, 6 months agobobob
4 years, 10 months agoAnton2020
3 years, 9 months agoGyzmou
4 years, 11 months agoSamAru
5 years agov323rs
5 years, 6 months agodya45792
5 years, 7 months ago