Andrew Miller
Quiz by , created more than 1 year ago

Variables and data types

11
0
0
Andrew Miller
Created by Andrew Miller almost 8 years ago
Close

Quiz 20 - 22

Question 1 of 2

1

________ is the Java assignment operator.

Select one of the following:

  • :=

  • =

  • =:

  • ==

Explanation

Question 2 of 2

1

To declare an int variable number with initial value 2, you write

Select one of the following:

  • int number = 2;

  • int number = 2l;

  • int number = 2L;

  • int number = 2.0;

Explanation