Basics of Java
Description: Simple test to check your java | |
Number of Questions: 15 | |
Created by: | |
Tags: java Conditional Statement |
Which type(s) of linked list is/are used in Java utility package?
Which of the following statements is wrong?
class superclass
{
}
class subclass extends superclass
{
}
What happens in the heap memory when a subclass object is created?
Which of the following is a deprecated way to read input from standard input?
Which of the following statements is TRUE about Java interfaces?
Which of the following is not a checked exception?
Which of the following is the method in 'Cloneable' interface?
Which of the following statements is/are syntactically wrong?
In which of the following cases will the finally block not be executed after the try block?
In which of the following cases can we serialize a function?
Which of the following is not legacy Class/Interface?
Which of the following data types cannot be used with switch statement?
Which of the following statements is false about Synchronized and ThreadSafety?
What is the output of the above program?
public class Sss
{
public static
void main(String args[])
{
byte a=127; a++;
System.out.println(a);
}
}
What is the output of the above program?
public class A
{
static int a;
public static void main(String args[])
{
System.out.println(a);
}
}