Computer Language (JAVA)
Description: Get complete study material for Java Core test ABC in Java, A to Z in Java, Encyclopedia Java, Java Programming, Java Applets, Java Beans, Swings, Java Swings | |
Number of Questions: 25 | |
Created by: Priya Bakshi | |
Tags: Java Core Test ABC in Java A to Z in Java Encyclopedia Java Java Programming Java Applets Java Beans Swings Java Swings Programming |
All classes in Java directly or indirectly extends ……………. class.
Java technology consists of
The static block even exectuted without main method in application program.
With the help of …………, a programmer can execute C, C++ or assembly language with the help of operating system directly.
The default value of char (Primitive Type) is
What is the output of the following program?
…………………… class is the base class of all exception and errors.
What will be the output of the following code? import java.lang.*; public class One { public static void main(String arg[]) { int i[]={0,1,2,3,4,5}; Object o=i; int i2[]=(int[])o; for(int i3:i2) { System.out.print(i3); } } }
JIT stands for
The size of an int is
Does a child class inherit superclass constructor?
In which package of java scanner class exists?
In JAVA, the default layout of a frame is
For formatted output of string class, we use
A manager class extends employee class. To invoke the constructor of parent class, user has to invoke …………. method.
Variables labeled …………….. are created when class is loaded and continue to exist for as long as the class is loaded.
Is JVM (Java Virtual Machine) platform dependent?
What will be the output of the following code? class Shift { public static void main(String arg[]) { int a=64,b; b=a<<2; System.out.println(b); } }
Which method provides random value in java?
Who performs garbage collection in java?
What will be the output of the following code? import java.util.*; public class Hello { public static void main(String arg[]) { ArrayList<Integer> list= new ArrayList<Integer>(); list.add(10); int total=list.get(0); System.out.println(total); } }
In Java, TCP/IP is of
What will be the output of the following code? class Data { public static void main(String arg[]) { int i=12345; String str=”hello”; str=String.valueOf(i); System.out.println(str); } }
What will be the output of the following code?public class Short { public static void main(String[] args) { int a,b,c; a=1; b=2; c=a+b; System.out.println("C="+c); } }
What will be output of the following code? public class Two { public static void main(String arg[]) { long bvalue=99L; int squased = (int) bvalue; System.out.println(squased); } }