• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/10

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

10 Cards in this Set

  • Front
  • Back
int x = 3.5;
Illegal, 3.5 is not an integer
float x = 3;
Legal
long i = 3;
Legal
byte x = 155;
Illegal, 155 is too large to be a byte (> 127)
double d = 3.14159F;
Legal
boolean q = 17 < 25;
Legal
hat is the result of: float x = 3 / 4;
The variable x is set to zero. The numbers 3 and 4 are assumed to be int's so the result of their division is truncated to the int value of 0. There are a few ways to avoid this problem (i.e. float x = 3.0/4;).
Evaluate the following Java expression: 9 - 15 * 6 / 11 + 4
5
Evaluate the following Java expression: 76 % 7
6
Write a chart showing the precedence of all of the following operators: =, <, ==, &&, ||, !=, ++, + (addition), +=, --, *
++, --

*

+

<

==, !=

&&

||

=, +=