Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question
Question 1
Which of the following are regular files and directory files contained in the JAR file
that is provided with the HWO5 starter code? When listing the contents of the JAR
file, you can ignore any differences in capitalization of the filenames if you notice
any.
C cs1302/adt/StringList.class
C cs1302/adt/Node.class
META-INF/MANIFEST.ME
Ccs1302/adt/Stringlist.java
C cs1302/
C META-INF/
C cs1302/adt/
LinkedListDriver
package cs1302.listadt;
public class Driver {
public static void main (String[] args) {
Node node = new Node ("Tom");
node.setItem ("Susan") ;
node.setNext (new Node ("Sally"));
node.getNext (). setNext (new Node ("Barry"));
Node end = new Node ("Supa Mike", node);
Node n = node.getNext () ;
n.setNext (new Node ("Simon"));
System.out.println (end.getNext ());
// Output
1
System.out.println (node.getNext ().getitem ()); //
Output 2
System.out.println (n.getNext ().getNext ());
// output
3
System.out.println (n.getNext ().getItem ());
//
Output 4
} // main
} // Driver
Question 2
Which of the following statements about the code above are true? Select all that
apply. You can assume that the Node class is the same one used in the HW05 JAR
file. In fact, you can compile and run this code to check your answers as long as you
add the JAR file to the classpath.
| The line marked Output 3 will print null when the code is executed.
|The line marked Output 4 will print simon when the code is executed.
| The line marked output 1 will print null when the code is executed.
| The line marked Output 2 will print Sally when the code is executed.
expand button
Transcribed Image Text:Question 1 Which of the following are regular files and directory files contained in the JAR file that is provided with the HWO5 starter code? When listing the contents of the JAR file, you can ignore any differences in capitalization of the filenames if you notice any. C cs1302/adt/StringList.class C cs1302/adt/Node.class META-INF/MANIFEST.ME Ccs1302/adt/Stringlist.java C cs1302/ C META-INF/ C cs1302/adt/ LinkedListDriver package cs1302.listadt; public class Driver { public static void main (String[] args) { Node node = new Node ("Tom"); node.setItem ("Susan") ; node.setNext (new Node ("Sally")); node.getNext (). setNext (new Node ("Barry")); Node end = new Node ("Supa Mike", node); Node n = node.getNext () ; n.setNext (new Node ("Simon")); System.out.println (end.getNext ()); // Output 1 System.out.println (node.getNext ().getitem ()); // Output 2 System.out.println (n.getNext ().getNext ()); // output 3 System.out.println (n.getNext ().getItem ()); // Output 4 } // main } // Driver Question 2 Which of the following statements about the code above are true? Select all that apply. You can assume that the Node class is the same one used in the HW05 JAR file. In fact, you can compile and run this code to check your answers as long as you add the JAR file to the classpath. | The line marked Output 3 will print null when the code is executed. |The line marked Output 4 will print simon when the code is executed. | The line marked output 1 will print null when the code is executed. | The line marked Output 2 will print Sally when the code is executed.
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education