Search Header Logo

Java Class Members (Variables, methods, static block,..)

Authored by SrinivasaRao SrinivasaRao

Computers

Professional Development

Used 49+ times

Java Class Members (Variables, methods, static block,..)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

65 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Packages will follow the following naming convention

camel case

pascal case

upper case

lower case

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

methods in java will follow the _____ naming convention

pascal case

upper case

camel case

lower case

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

classes and interfaces in java will follow _____ convention

camel case

lower case

pascal case

upper case

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

constants in java will follow ____ convention

lower case

upper case

pascal case

camel case

5.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of these following statements are correct

In Pascal case, If the Identifier is the combination of multiple words then every word first letter should be capital.

In pascal case If the Identifier is the combination of multiple words then all the letters in the first word should be small after that every word first letter should be capital.

InputStreamReader is in camel case

nextInt() is in camel case

6.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of these following statements are correct

In camel case, If the Identifier is the combination of multiple words then all the letters in the first word should be small after that every word first letter should be capital.

In Pascal case, If the Identifier is single word then all the letters in that word should be small.

In Pascal case, The first letter of the identifier should start with Upper case letter.

In lower case, All the letters in the identifier should be small.

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of these are the class variables

local variables

instance variables

static variables

constants

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?