Introduction to Java

Introduction to Java

Assessment

Flashcard

Computers

University

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is a correct header line for main in a Java program? Options: public static void main(args), public static void main(String args), public static void main(args [ ]), public static void main(String [ ] args)

Back

public static void main(String [ ] args)

2.

FLASHCARD QUESTION

Front

What does a comment look like in Java?

Back

//comment

3.

FLASHCARD QUESTION

Front

A variable that holds a whole number

Back

int

4.

FLASHCARD QUESTION

Front

A variable that holds words

Back

String

5.

FLASHCARD QUESTION

Front

A variable that holds true or false

Back

boolean

6.

FLASHCARD QUESTION

Front

A variable that holds a character

Back

char

7.

FLASHCARD QUESTION

Front

What is the file extension for Java Source Code?

Back

.java

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?