このデッキ内のフラッシュカード (19 枚)

検索中...
  • 1

    What is Collection in Java?


    A group of objects represented as one unit. Classes are divided into two root interfaces: Collection and Map.

    java collections
  • 2

    What is a Framework in Java?


    A set of classes and interfaces providing a ready-made architecture for implementing features.

    java frameworks
  • 3

    What is the difference between Array and Collection in Java?


    Arrays are similar-typed variables with a common name; Collections are groups of individual objects forming a single entity.

    java arrays collections
  • 4

    What is the Java Collection Framework?


    Introduced in JDK 1.2, it contains classes and interfaces for storing and manipulating collections of objects.

    java frameworks
  • 5

    What is the Collections Class?


    A member of the Collection Framework in java.util, providing utility methods for collection objects.

    java collections
  • 6

    What are some popular Java frameworks?


    • Spring
    • Hibernate
    • Struts
    • Google Web Toolkit (GWT)
    • JavaServer Faces (JSF)
    java frameworks
  • 7

    What are the two root interfaces of Java Collections?


    • Collection (java.util.Collection)
    • Map (java.util.Map)
    java interfaces
  • 8

    What is the size characteristic of arrays?


    Fixed in size; cannot increase or decrease after creation.

    arrays collections
  • 9

    What is the size characteristic of collections?


    Growable in nature; can increase or decrease based on requirements.

    arrays collections
  • 10

    Which is recommended for memory usage?


    Collections are recommended for use.

    memory collections
  • 11

    Which is recommended for performance?


    Arrays are recommended for use.

    performance arrays
  • 12

    What types of data can arrays hold?


    Only homogeneous data types.

    arrays data_types
  • 13

    What types of data can collections hold?


    Both homogeneous and heterogeneous elements.

    collections data_types
  • 14

    What is the root interface of the Java Collections Framework?


    Collection interface.

    collections interfaces
  • 15

    Which interfaces implement the Collection interface?


    • List interface
    • Set interface
    • Queue interface
    • Dequeue interface
    • Map interface
    collections interfaces
  • 16

    Where are the classes and interfaces of the collection framework contained?


    In the utility package (java.util).

    collections java
  • 17

    What is the advantage of a consistent API in the collection framework?


    Provides common methods across all classes implementing interfaces.

    collections api
  • 18

    How does the collection framework reduce programming effort?


    Programmers can focus on best use rather than design.

    programming efficiency
  • 19

    What does the collection framework improve in terms of program speed?


    Increases performance with high-performance implementations.

    performance collections