programming languages Online Quiz - 209
Description: programming languages Online Quiz - 209 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
What will happen if you try to compile and run this ? public class Test{ static{ print(10); } static void print(int x){ System.out.println(x); System.exit(0); } }
What is the value of d that will be printed out. public class Test { public final static void main(String[] args) { double d = - 22.22222; System.out.println(Math.ceil(d)); } }
Identify whether the following statement is true or false.
The keyword synchronized can be used with only a method
Identify whether the following statement is true or false.
The run () method should necessary exist in classes created as subclass of Thread
What is the purpose of the toolkit in the Abstract Window Toolkit (AWT)?
What is an interface class?
Vertical and horizontal scroll bar increments are how many units by default?
Reflection (introspection) is querying a class about its properties, and operating on methods and fields by the name for a given object instance. Why is reflection possible in the Java language?
The StringBuffer class supports what type of strings?
Identify the correct examples of Exception