Online Test for Java

  1. Which method of System class is used to copy array?
    copyArray
    arrayCopy
    arraycopy
    arrCopy

  1. Which of these is a super class of all errors and exceptions in the Java language?
    RunTimeExceptions
    Throwable
    Catchable
    None of the above


  1. A collection of methods with no implementation is called an ________.
    Polymorphism
    Inheritance
    Interface
    Data Binding

  1. JAR stands for ________.
    Java Application Runner
    Java Archive Runner
    Java Archive
    None of these

  1. Which is right way to creating an array of integer?
    javaArray = new int[10];
    javaArray new = myArray[10];
    int[] javaArray = new int[10];
    A and C Both


  1. What is the correct signature of the main method?
    public static void main(String[] args)
    static public void main(String[] args)
    public void main(String[] args)
    A and B Both

  1. Assignment operator is evaluated Left to Right.
    True
    False

  1. Garbage Collection is manual process.
    True
    False

Post Your Question
Social Sharing
Search