Preview

Questions on Java Collection

Good Essays
Open Document
Open Document
4040 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Questions on Java Collection
Java Collection Interview Questions

Q: | What is the Collections API? | A: | The Collections API is a set of classes and interfaces that support operations on collections of objects. | Q: | What is the List interface? | A: | The List interface provides support for ordered collections of objects. | Q: | What is the Vector class? | A: | The Vector class provides the capability to implement a growable array of objects. | Q: | What is an Iterator interface? | A: | The Iterator interface is used to step through the elements of a Collection . | Q: | Which java.util classes and interfaces support event handling? | A: | The EventObject class and the EventListener interface support event processing. | Q: | What is the GregorianCalendar class? | A: | The GregorianCalendar provides support for traditional Western calendars | Q: | What is the Locale class? | A: | The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region . | | | |

Q: | What is the SimpleTimeZone class? | A: | The SimpleTimeZone class provides support for a Gregorian calendar . | | | |

Q: | What is the Map interface? | A: | The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values. | | | |

Q: | What is the highest-level event class of the event-delegation model? | A: | The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy. | | | |

Q: | What is the Collection interface? | A: | The Collection interface provides support for the implementation of a mathematical bag - an unordered collection of objects that may contain duplicates. | | | |

Q: | What is the Set interface? | A: | The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements. | | | |

Q: | What is the typical use of Hashtable? | A: |

You May Also Find These Documents Helpful

  • Powerful Essays

    Searching and Sorting Streams and Files Graphics GUI Components and Events Mouse, Keyboard, Sounds, and Images Big-O Analysis of Algorithms The Java Collections Framework Lists and Iterators Stacks and Queues Recursion Revisited Binary Trees Lookup Tables and Hashing Heaps and Priority Queues Design Patterns…

    • 3908 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    Nt1210 Chapter 1 Review

    • 1315 Words
    • 6 Pages

    B. Provides a convenient way to name a set of data for easier operations like copying and moving…

    • 1315 Words
    • 6 Pages
    Good Essays
  • Good Essays

    | |control method whereby the |through the use of lists is |network some additional |…

    • 572 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1420 Unit 6

    • 1145 Words
    • 5 Pages

    Question 6 A hash table is a data structure that uses an array as its internal storage container. Items are added to the array based on the integer generated by a hash function. A hash function produces an integer based on some properties of the object. In Java hash functions are encapsulated via the hashcode method in the Object class and that many classes override.…

    • 1145 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    CS 220 – Programming w/ Data Structures: You have missed one assignment and one quiz. Your instructor has extended your assignment due date to this Sunday, April 10. Your instructor has also let you to take your Quiz # 2 during his office hours during this week. Let me know if you need additional support to study for this quiz. Your grade to date in this class is 30.2/37 81.62% B.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    situations of adding to, take from, putting together, taking apart, and comparing, with unknowns in all positions, e.g., by using objects, drawings, and equations with a symbol for the unknown number to represent the problem.…

    • 1755 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    The operator keyword declares a function specifying what operator-symbol means when applied to instances of a class. This gives the operator more than one meaning, or "overloads" it. The compiler distinguishes between the different meanings of an operator by examining the types of its operands.…

    • 519 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Thesis on java

    • 314 Words
    • 2 Pages

    This class consists of static utility methods for operating on objects. These utilities include null-safe or null-tolerant methods for computing the hash code of an object, returning a string for an object, and comparing two objects.…

    • 314 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Subtracting by regrouping

    • 624 Words
    • 3 Pages

    MCC.3.NBT.2 Fluently add and subtract within 1000 using strategies and algorithms based on place value, properties of operations, and/or the relationship between addition and subtraction.…

    • 624 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    REPORT ON PRO E

    • 1655 Words
    • 7 Pages

    · List duplicate occurrences of model data individually or as a group in a report, drawing table, or layout table.…

    • 1655 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Exercise 1: Review of array-based lists Create a project using the classes in the DocSharing area labeled “User-defined array list." Compile it, run it, and review the code that is given carefully. This code tests the ArrayList class provided in the lecture.…

    • 714 Words
    • 3 Pages
    Good Essays
  • Good Essays

    In this chapter, we will study this data structure, its implementation and its applications. Before that, we will study some definitions and terminology.…

    • 6746 Words
    • 46 Pages
    Good Essays
  • Powerful Essays

    Golden Rules for Teaching

    • 1193 Words
    • 5 Pages

    SOME EXAMPLE PRINCIPLES • • • • • • • Iteration vs. recursion Compilation vs. interpretation Caching Use of hints Hashing Locality in space and time Delayed binding…

    • 1193 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Algorith Analysis Text Book

    • 387199 Words
    • 1549 Pages

    Introduction 1 3 The Role of Algorithms in Computing 5 1.1 Algorithms 5 1.2 Algorithms as a technology 11 Getting Started 16 2.1 Insertion sort 16 2.2 Analyzing algorithms 23 2.3 Designing algorithms 29 Growth of Functions 43 3.1 Asymptotic notation 43 3.2 Standard notations and common functions…

    • 387199 Words
    • 1549 Pages
    Satisfactory Essays
  • Satisfactory Essays

    What Is Super Key in Dbms

    • 1055 Words
    • 5 Pages

    Superkey - A superkey is defined in the relational model as a set ofattributes of a relation variable (relvar) for which it holds that inall relations assigned to that variable there are no two distincttuples (rows) that have the same values for the attributes...…

    • 1055 Words
    • 5 Pages
    Satisfactory Essays