Chapter 21: Problem 1
Fill in the blanks in each of the following statements: a) A self-_______ class is used to form dynamic data structures that can grow and shrink at execution time. b) \(A(n)\)_______ is a constrained version of a linked list in which nodes can be inserted and deleted only from the start of the list. c) A method that does not alter a linked list, but simply looks at it to determine whether it's empty, is referred to as a(n) ______ method. d) A queue is referred to as a(n) _____ data structure because the first nodes inserted are the first ones removed. e) The reference to the next node in a linked list is referred to as a(n ______ f) Automatically reclaiming dynamically allocated memory in Java is called _______ g) \(A(n)\) ______ is a constrained version of a linked list in which nodes can be inserted only at the end of the list and deleted only from the start of the list. h) \(A(n)\) _______ is a nonlinear, two-dimensional data structure that contains nodes with two or more links. i) \(\quad A\) stack is referred to as a(n) ________ data structure because the last node inserted is the first node removed. j) The nodes of a(n) ______ tree contain two link members. k) The first node of a tree is the ______ node. I) Each link in a tree node refers to a(n) ______ or ______ of that node. \(\mathrm{m}\) ) A tree node that has no children is called a(n) _______ node. n) The three traversal algorithms we mentioned in the text for binary search trees are ______ ,_____ or _____ o) When compiling types in a package, the javac command-line option ______ specifies where to store the package and causes the compiler to create the package's directories if they do not exist. p) The compiler uses a(n) _______ to locate the classes it needs in the classpath. q) The classpath for the compiler and JVM can be specified with the ______ option to the javac or java command, or by setting the ______ environment variable. r) There can be only one ______ in a Java source-code file, and it must precede all other declarations and statements in the file.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.