Correct is B. Because the ClassCastException occurs when we try to cast to a PRIMITIVE variable type that does not hold the variable's value. String is not a primitive type and a primitive type cannot cast to a non-primitive type, error occurs when executing code on line n1.
incompatible types: int cannot be converted to java.lang.String!
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.
vic88
7 months, 1 week agoarjunrawatirissoftware
1 year, 8 months agofvelazqueznava
1 year, 9 months agoduydn
1 year, 10 months agoNabilBenAsker
2 years agoNabilBenAsker
2 years agoKolodets
2 years, 2 months agoAnkit1010
2 years, 4 months agocarloswork
2 years, 8 months agoUAK94
2 years, 8 months agoiSnover
2 years, 9 months agoRdharma
2 years, 9 months agoPhilip0908
2 years, 10 months agoTD844
2 years, 10 months agoRoxyFoxy
2 years, 10 months ago