Q.1.
Which method is used to make main thread to wait for all child threads
Q.2.
Which of these class is highest in hierarchy in java
Q.3.
When overloading a method, the method header ________ .
Q.4.
What are the legal indexes for the array ar, given the following declaration:int[] ar = {8 }
Q.5.
Which of the following are not Java modifiers?
Q.6.
_____________ are non graphic characters, which are used as commands to direct the cursor while printing.
Q.7.
Q) Number of threads in below java program ispublic class ThreadExtended extends Thread { public void run() { System.out.println("\nThread is running now\n"); } public static void main(String[] args) { ThreadExtended threadE = new ThreadExtended(); threadE.start(); }}
Q.8.
Class Demo1{public static void main(String args[]){int i[] = new int[10];System.out.println(i[10]);}}
Q.9.
Which of the following is an example of a reference variable declaration?
Q.10.
Which one is NOT the basic element of OOP?
Q.11.
Find the output for the following.public class IncDec{ public static void main(String s[]) { int a = int b = int c; int d; c = ++b; d = a++; c++; System.out.println("a = " + a); System.out.print("b = " + b); System.out.println("c = " + c); System.out.print("d = " + d); }}
Q.12.
Q) What is maximum thread priority in Java
Q.13.
How would you declare a variable storing the tax rate?
Q.14.
Inheritance is used when the relationship between two classes is a(n) _______ relationship.
Q.15.
What is sometimes also called a lightweight process?
Q.16.
Which of these keywords is used to make a class?
Q.17.
Which of these statement is incorrect?
Q.18.
Which concept of Java is a way of converting real world objects in terms of class?
Q.19.
Class dog implements the animal interface.Which IS a valid declaration?
Q.20.
If a priority of a java thread is 3 then the default priority of its child thread will be