Study

Introduction to Java Programming - Activity#4

  •   0%
  •  0     0     0

  • What is the output for the above code segment?
    2.0
  • What is the final result of the following expression as evaluated by Java?
    2
  • Which of the following is not an arithmetic operator?
    =
  • What is the output of the following code segment? System.out.println("The result is: "+(10*20*10));
    The result is: 2000
  • Which primitive type can hold the largest value?
    double
  • Which of the following is the appropriate data type for the below example? _______________ mark = false;
    boolean
  • What is the value of result after the following Java statements execute?
    119
  • Which of the below Java keywords is used to define a constant?
    final
  • What is the output of the above Java program?
    MySuperJava
  • Which of the following is not a primitive type?
    String