Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
postfix operator
:
Content language: English
Русский
What will be indicated in the console? public class D { public static void main(String[] args) { E e = new E(); e.someVariable = 100; e.doIt(e); System.out.println(e.someVariable); } } class E { public int someVariable = 10; public void doIt(E aE) { aE.someVariable++; } E() { } }
postfix operator
What will be printed as a result? public class Test { public static void main(String[] s) { for (int i = 2; i < 10; i = (i++) + i--, i++) { System.out.print(--i); } } }
postfix operator
What is the result of the following code: public class MainClass { public static void main(String args[]) { int k = 2; int m = 10; int s = 1 >> k++ + ++m - --k - m-- << 1; System.out.println("s = " + s); System.out.println("k = " + k); System.out.println("m = " + m); } }
postfix operator
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes