Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java question: 16 An exception that can be flagged by the compiler is called a(n) a. unchecked exception b checked exception compiler exception d. execution

Java question:
image text in transcribed
16 An exception that can be flagged by the compiler is called a(n) a. unchecked exception b checked exception compiler exception d. execution exception 17. A concrete class a does not have any subclasses b is a superclass with many subclasses d is the base class of all other classes 18 What method is used to write a serialized object to a binary file? a. writeObject b. print ?.put 19. Which of the following is the JOptionPane method used to display a dialog box to gather input? b. getinputDialog Which of the following is(are) true for a JTextField? showMessageDialog c. displayPromptDialog d showinputDialog 20 It can be used to display uneditable text. b It can be used to display editable text C. It can be used to accept data from the keyboard. d. All of the above provides the basic attributes and behaviors of a window- a title bar at the top of the window and buttons to minimize, maximize and close the window C. JPanel d. JWindowControl b. JFrame 22 Method can be used to set the layout manager of a GUI container c. setLayoutManager d. a. b. setl ayout setGUILayout 23. Forgetting to register an event-handler for a component causes a ?, events for that component to be ignored all of the program's events to be consumed C. d a compilation error None of the above What interface must a class implement if objects of the class are to be read from or written to a file in binary? a. Rewritable b. Serializable 24. c. Cloneable d. Binary 25 When an existing file is opened for output a the data in the file is saved to a backup file. b the file is deleted c. a FileNotFoundException occurs d. All the data in the file is discarded (the data is truncated). 26. What does the following statement do? FileInputstream fis new FileInputsteam "Data.bin; a. Opens a binary file for input cOpens a text file for input b. Opens a binary file for output d Opens a text file for output If class Dog has a subclass named Retriever, which of the following is true? a Because of single inheritance, Dog can have no other subclasses. b Because of single inheritance, Retriever can not extend another class in addition to Dog 0The relationship between these classes implies that Dog "is-a Retriever d The relationship between these classes implies that Retriever 'has-a Dog 27

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions