Menu
Question Index
...

What lines fail to compile?

public class MoviesAreFun {

    public static void main(String[] args) {
        int arya2 = 2; /* LINE A */
        double life_is_beautiful = 3.0; /* LINE B */
        char 7/gbrundavan_colony = 'G'; /* LINE C */
        float LIFE_OF_PI = 3.14; /* LINE D */
        short 3idiots = 255; /* LINE E */
    }
}


ABCE
CE
CDE
ABCDE

Doubts

Problems

Topic: Java Variables

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App