GoConqr has a new look! Let us know what you think.

Quiz

JAVA OCA - 07 EXCEPCIONES TEST

Isra RM 2 questions

Take the quiz

Questions in this quiz (2)

  1. 1Una excepción no controlada que ocurre en un método dosomething() ¿Podría añadirse algún código para que compilara y se ejecutase?
    1. ALa excepción debe ser controlada
    2. BLa excepción debe ser declarada para ser lanzada
    3. CLas dos anteriores son opciones válidas
    4. Dno es necesario
  2. 2Dado el fragmento de código:
    interface SampleClosable {
    public void close () throws java.io.IOException;
    }
    ¿Cuál de las siguientes implementaciones son válidas?
    1. Apublic class Test implements SampleCloseable {
      Public void close () throws java.io.IOException { / /do something}
      }
    2. Bpublic class Test implements SampleCloseable {
      Public void close () throws Exception {/ / do something}
      }
    3. Cpublic class Test implementations SampleCloseable {
      Public void close () throws Exception { / / do something}
      }
    4. Dpublic class Test extends SampleCloseable {
      Public void close () throws java.IO.IOException{ / / do something}
      }

Information

Description
Diploma JAVA OCA - OCP (TESTS OCA) Quiz on JAVA OCA - 07 EXCEPCIONES TEST, created by Isra RM on 24/09/2015.
Author
Isra RM
Language
Español
Views
3
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?