Choose a topic to test your knowledge and improve your Java skills
Which is the predefined package
Java intermediate code is known as
Which command is used for interpretation of java program
What is meaning of jar
Which of the following command is used to compile the Java program
What do you mean by javap
What is jdb
Java is known as _______stage language
Which driver is called as thin-driver in JDBC
How many transaction isolation levels are defined in java.sql.Connection interface
Which method of java is invoked by JVM to reclaim the inaccessible memory location
____ allows java code to run in the JVM to call and be called by native applications
Interfaces helps in which type of inheritance
Which method of the Applet class displays the result of applet code on screen
Which command disassembles a class file
In which we clone the object and their constituent parts
Which driver is efficient and always preferable for using JDBC applications
Executable applet is
Which keyword is used while using interface
Which keyword represents object of the present class
Hot java is
javah stands for
Main method parameter has which type of data type
How many keywords are available in java
Smallest individual unit in java program is known as
Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct?
The object is created with "new" keyword
ate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; }
A package is a collection of
A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction?
Choose the correct statement public class Circle{ private double radius; public Circle(double radius){ radius = radius; } }
Choose the correct statement : Restriction on static methods are-
Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class.
In Java arrays are
Which one of the following is a valid statement?
What is the result of compiling and running the following code? public class Test{ public static void main(String[] args){ int[] a = new int[0]; System.out.print(a.length); } }
What is output of the following code: public class Test{public static void main(String[] args){ int[] x = {120, 200, 016 }; for(int i = 0; i < x.length; i++)System.out.print(x[i] + " "); } }
What will be the output? public class Test{ public static void main(String[] arg{ int[] a = new int[4]; a[1] = 1; a = new int[2]; System.out.println("a[1] is " + a[1]); } }
When you pass an array to a method, the method receives ________ .
Which will legally declare, construct, and initialize an array?
What is the value of a[1] after the following code is executed? int[] a = {0, 2, 4, 1, 3}; for(int i = 0; i < a.length; i++) a[i] = a[(a[i] + 3) % a.length];
The output of the following fraction of code is public class Test{ public static void main(String args[]){ String s1 = new String("Hello"); String s2 = new String("Hellow"); System.out.printl
Output : public class Test{ public static void main(String args[]){ String x = "hellow"; int y = 9; System.out.println(x += y); } }
toString() method is defined in
The String method compareTo() returns
What will be the output? String str1 = "abcde"; System.out.println(str1.substring(1, 3));