CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which Of The Following Are Legal Lines Of Java Code?


A

int w = (int)888.8

No worries! We‘ve got your back. Try BYJU‘S free classes today!
B

long y = (byte)100

No worries! We‘ve got your back. Try BYJU‘S free classes today!
C

byte z = (byte)100L

Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D

byte x = (byte)100L

No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C

byte z = (byte)100L


The answer is (C) All of these

Explore more such questions and answers at BYJU’S.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Database Structuring
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon