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
packages
:
Content language: English
Русский
Given the following class: public class Main { public static void main(String[] args) { // TODO code application logic here } } Specify the full name of the package that was automatically imported.
packages
Is the absence of a package declaration in the source code acceptable?
packages
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; }
packages
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)?
packages
What access modifiers are allowed for the class if he is the only one in the file?
packages
What is the result of the command javac test.java if file test.java contains: // test.java /* comments */
packages
Which of the following packages are automatically imported into all Java-program?
packages
What will be the result of compilation and execution of the following code: // file Thread.java 1. package ThreadTest; 2. public class Thread implements Runnable { 3. public void run() { 4. System.out.println("thread"); 5. } 6. } // file Thread2.java 10. package ThreadTest; 11. public class Thread2 implements Runnable { 12. public void run() { 13. System.out.print("thread2"); 14. } 15. public static void main(String[] args) { 16. Thread2 thread = new Thread2(); 17. Thread t1 = new Thread(thread); 18. t1.start(); 19. } 20. } Select all that apply.
packages
Python packages can be imported from inside a Zip file.
packages
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes