Operators and Expressions in Java


Available Answers

  1. 1.

    What is the difference between / and % operator?

  2. 2.

    What will be the output of the following code?

    int k=5, j=9;
    k += k++ - ++j + k;
    System.out.println("k="+k);
    System.out.println("j="+j);

  3. 3.

    Write an expression in Java for

    z = 5x+ 2y / x + y

  4. 4.

    Give one point of difference between unary and binary operators.

33 more answer(s) available.

Please login to post your comments.