Search Header Logo

Java Fundamentals

Authored by SrinivasaRao SrinivasaRao

Computers

Professional Development

CCSS covered

Used 24+ times

Java Fundamentals
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

78 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Command to compile the Java program

java

javac

javap

javadoc

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

command to run the java program

javac

javap

javadoc

java

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this method is given parameter via command line arguments?

main()

recursive() method

Any method

System defined methods

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these data types is used to store command line arguments?

Array

Stack

String

Integer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many arguments can be passed to main()?

Infinite

Only 1

System Dependent

None of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a correct statement about args in the following line of code?


public static void main(String args[])

args is a String

args is a Character

args is an array of String

args in an array of Character

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can command line arguments be converted into int automatically if required?

Yes

No

Compiler Dependent

Only ASCII characters can be converted

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?