JAVA QUIZ QUESTIONS.docx - 1 What is i printed in the following code public class Test public static void main(String args int j = 0 int i = j j 5

JAVA QUIZ QUESTIONS.docx - 1 What is i printed in the...

This preview shows page 1 - 2 out of 2 pages.

1)What is i printed in the following code?public class Test {public static void main(String[] args) {int j = 0;int i = j++ + j * 5;System.out.println("What is i? " + i);}} 2)Analyze the following code.public class Test {public static void main(String[] args) {int month = 09;System.out.println("month is " + month);} } 3)The result of an integer division is the integer part of the division; the fraction part is truncated. If a number is too large to be stored in a variable of the float type, it ________. 4)Which of the following are correct names for variables according to Java naming conventions? 5)Suppose x is 1. What is x after x -= 1? 6)The assignment operator in Java is ________.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '09
  • English-language films, Imperative programming

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture