Menu
Question Index
...

Which of the following class declaration is correct?

/* X */
class Student
{
    String name;
    int marks;
    char section;
}
/* Y */
Class Student
{
    String name;
    int marks;
    char section;
}


X only
Y only
X and Y both are correct
X and Y both are incorrect

Doubts

Problems

Topic: Java Class

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App