Which Of The Following Are Legal Lines Of Java Codep Pre #3
Which of the following are legal lines of Java code?</p> <pre><code class="language-java"> 1. int w = (int)888.8; 2. byte x = (byte)100L; 3. long y = (byte)100; 4. byte z = (byte)1000L; </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Data Types Variables Arrays - Java Integer and Floating Data Types - Quiz No.1.
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)1000L;
1 and 2
2 and 3
3 and 4
All statements are correct