0

platforms and products Online Quiz - 47

Description: platforms and products Online Quiz - 47
Number of Questions: 20
Created by:
Tags: platforms and products
Attempted 0/20 Correct 0 Score 0

Can we have try block with out catch?

  1. True

  2. False


Correct Option: A
  1. java.lang.Error

  2. java.lang.Throwable

  3. java.lang.Util

  4. java.lang.CheckedException


Correct Option: B
  1. UncheckedException

  2. CheckedException

  3. Error

  4. UnspecifiedException


Correct Option: C
  1. It will go for Garbage Collector

  2. It remains in Stack

  3. It will not create any object

  4. Exception objects will not put load on JVM


Correct Option: A
  1. UncheckedException

  2. CheckedException

  3. Error

  4. UnspecifiedException


Correct Option: A

The 'is-a' relationship is one of 'generalization'

  1. True

  2. False


Correct Option: B

public abstract final method-name(arguments) {} //Can not be compiled?

  1. True

  2. False


Correct Option: B

A transient variable can not be serialized.

  1. True

  2. False


Correct Option: A

What is this() in class?

  1. this() can be used to invoke a constructor of the same class

  2. this() will create the object of the same class

  3. There is no function called this(). It is a key word.

  4. this() will invoke the constructor of subclass


Correct Option: A
  1. Thread.start()

  2. Thread.run()

  3. Thread.yield()

  4. A dead thread cannot be restarted.


Correct Option: D
  1. singleton pattern.

  2. creational pattern.

  3. command design pattern.

  4. composite design pattern.


Correct Option: B

Which Java operator is right associative?

  1. =

  2. +

  3. >>

  4. <


Correct Option: A

StringBuffer vs StingBuilder

  1. StringBuilder is immutable but StringBuffer is mutable.

  2. StringBuffer is immutable but StringBuilder is mutable.

  3. StringBuffer is Synchronized but StringBuilder is not.

  4. They both are immutable.


Correct Option: C
  1. Implementing Thread interface.

  2. Implementing Cloneable interface.

  3. Implementing the Runnable interface.

  4. We can not create a Thread, JVM has to create it by it's own.


Correct Option: C
- Hide questions