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
import keyword
:
Content language: English
Русский
What is the result of the following program execution? import static java.lang.Math.*; public class StartClass { public static void main(String[] args) { System.out.println(max(1, 2)); } }
import keyword
What will the compilation result be? package com.one; import static com.two.Two.*; public class One { int x1 = Two.tiger; //1 int x2 = tiger; //2 int x3 = com.two.Two.tiger; //3 int x4 = two.Two.tiger; //4 } Second file: package com.two; public class Two { public static int tiger = 1414; }
import keyword
Is importing of the package java.awt, recorded in the program as follows: import java.awt.*; sufficient to use classes in the package java.awt.event (without naming the package)?
import keyword
Which of the following packages are automatically imported into all Java-program?
import keyword
What will be the result of compiling and running the following code? import static java.lang.Byte.*; import static java.lang.Integer.*; public class Test { public static void main(String[] args) { System.out.println(MAX_VALUE); } }
import keyword
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes