Which of the following are legal lines of Java code? 1. int w = (int)888.8; "2. byte x = (byte)100L; "3. long y = (byte)100; "4. byte z = (byte)100L;"

🎲 Try a Random Question  |  Total Questions in Quiz: 80  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Core Java — practice the complete quiz, review flashcards, or try a random question.


Which of the following are legal lines of Java code? 1. int w = (int)888.8; "2. byte x = (byte)100L; "3. long y = (byte)100; "4. byte z = (byte)100L;"