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
primitive types
:
Content language: English
Русский
int i = Integer.MAX_VALUE + 10; What is the result of the given line execution?
primitive types
Mark the answer choices in which the pairs are equal to each other (2 correct answers):
primitive types
Which of the following lines will compile without errors and warnings?
primitive types
int[] x = new int[25] Which of statements below are true?
primitive types
What will be printed as a result of the following code execution? public class Main { public static void main(String args[]) { byte b = 0; while (++b > 0); System.out.println(b); } }
primitive types
Which lines will not cause compilation errors?
primitive types
What will be printed as a result of the following code execution? public class Test { public static void main(String[] args) { int i = 1; add(i++); System.out.println(i); } static void add(int i) { i += 2; } }
primitive types
What will the following code display (ASCII code of '1' is 49)? public class Test { public static void main(String[] args) { char c1 = '1'; char c2 = '\u0031'; char c3 = 49; System.out.println(c1 + c2 + c3); } }
primitive types
What is the following code execution result? Integer i1 = 10; Integer i2 = 10; Double d1 = 10d; Double d2 = 10d; System.out.println(i1 == i2); System.out.println(d1 == d2);
primitive types
What happens as a result of an attempt to compile and execute the following code? byte b1 = 127; b1 += 1;
primitive types
← Prev
1
2
3
4
Next →
Sign Up Now
or
Subscribe for future quizzes