GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Primer Set de Preguntas Java OCA Exam (1z0-803)

webmasterMyJavaZone 15 Fragen 32.424 Aufrufe

Quiz starten

Fragen in diesem Quiz (15)

  1. 1Which statement is not true about package statements?
    1. APackage statements are optional.
    2. BPackage statements are limited to one per source file.
    3. CStandard Java coding convention for package names reverses the domain name of the organization or group creating the package.
    4. DThe package names beginning with javas.* and javaw.* are reserved.
  2. 2Which statement represents a valid statement that will allow for the inclusion of classes from the java.util package?
    1. Aimport java.util;
    2. Bimport java.util.*;
    3. C#include java.util;
    4. D#include java.util.*;
  3. 3List four interfaces of the Collections API.
    1. AArrayList, Map, Set, Queue
    2. BList, Map, Set, Queue
    3. CList, Map, HashSet, PriorityQueue
    4. DList, HashMap, HashSet, PriorityQueue
  4. 4Which class in the java.io package allows for the reading and writing of files to specified locations within a file?
    1. AFile
    2. BFileDescriptor
    3. CFilenameFilter
    4. DRandomAccessFile
  5. 5Which MS Windows–based command-line utility will allow you to run the Java interpreter without launching the console window?
    1. Ajavaw
    2. Binterpw
    3. Cjava -wo
    4. Djconsole
  6. 6What is the correct import package needed to use the ArrayList class?
    1. Aimport java.awt.*;
    2. Bimport java.io.*;
    3. Cimport java.net.*;
    4. Dimport javax.swing.*;
    5. Eimport java.util.*;
    6. FThis is a trick question, because it is part of the java.lang package that is imported automatically.
  7. 7Of the following packages, which contain classes for building a graphical interface? (Choose all that apply.)
    1. Ajava.awt
    2. Bjava.io
    3. Cjava.net
    4. Djavax.swing
    5. Ejava.util
  8. 8Which of the following statements is correct?
    1. AA Java class can extend only one superclass.
    2. BA Java class can extend multiple superclasses.
    3. CA Java class cannot extend any superclasses.
    4. DA Java class does not extend superclasses; it implements them.
  9. 9You have created a set of classes for your company and would like to include them in a package. Which one of the following would be a valid package name?
    1. Ayour company name
    2. Bcom.your company name
    3. Cjava.your company name
    4. Djava.your_company_name
    5. Ecom.your_company_name
  10. 10What is the result of running the following command:

    javac Simulator.java
    1. AThe simulator program would be executed.
    2. BA bytecode file Simulator.class would be created.
    3. CA bytecode file Simulator.java would be created.
    4. DAn error would be displayed because this is the wrong syntax.

Informationen

Beschreibung
Quiz am Primer Set de Preguntas Java OCA Exam (1z0-803), erstellt von webmasterMyJavaZone am 14/06/2014.
Sprache
Español
Aufrufe
32.424
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck