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
integer
:
Content language: English
Русский
What will be the result of the following code execution? class Alien { String invade(short ships) { return "a few"; } String invade(short... ships) { return "many"; } } public class Defender { public static void main(String [] args) { System.out.println(new Alien().invade(7)); } }
Integer
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);
Integer
In what ways can 28 be represented in java?
Integer
What is the result of the following program execution? public class Test { public static void main(String[] args) { char ch = '0'; for (; ch <= 9; ch++) System.out.print(ch); } }
Integer
What will the following code's execution print out? public class Quizful { public static void main(String[] args) { Integer one = 1000; Integer two = 2000; System.out.print((one * 2 == two) ? "yes " : "no "); System.out.print((two / 2 == one) ? "yes " : "no "); } }
Integer
What is the result of the following code execution? int i1 = 012; int i2 = 20; System.out.println(i1 * i2);
Integer
What will be displayed? Integer a = 128; Integer b = 128; Integer c = -128; Integer d = -128; System.out.println(a == b); System.out.println(c == d);
Integer
As a result of compiling of which lines there will be a compilation error: public class Main { public static void main(String[] args) { int v1 = 081; //1 int v2 = 0x81; //2 float v3 = 0x81; //3 float v4 = 0.81; //4 byte v5 = 0x81; //5 } }
Integer
What will be the output of the following code: public static void main(String[] args) { int i = 10; Integer x = new Integer(10); if(x == i) { System.out.print("true"); } else { System.out.print("false"); } }
Integer
What will be the output of the following code? (JDK version >= 1.5) public static void main(String[] args) { Integer a = 12; Integer b = 12; Integer c = 128; Integer d = 128; System.out.println(a == b); System.out.println(c <= d); System.out.println(c >= d); System.out.println(c == d); }
Integer
← Prev
1
2
Next →
Sign Up Now
or
Subscribe for future quizzes