Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer the following JAVA questions 0. Which of the following statements is false A) A java class can implement more than one interface AJava class

Answer the following JAVA questions image text in transcribed
0. Which of the following statements is false A) A java class can implement more than one interface AJava class can implement an interface and extend a class simultaneously A java class can extend more than one class D) A Java class can extend a class that already etends another class means that a single reference variable can be used with different types of related objects at differont times. A) Inhenitance )Polymorphism 12. If you do not initialize an instance variable in a constructor, it is automatically set to a default value. Which of these is NOT correct? A Strngs are set to". B) Object and array references are set to nul C) Boolean variables are set to false Di Numbers are set to zero 3 In order to allow a Gl-based program to respond to individual keystrokes, you would add aln) to your program A) KeyLayout manager B) Exception handler C) KeyListener D) Actionlistener 14. Which of these is a poor example of inheritance? C) Quiz extends Question A) Child extends Parent B) Manager extends Employee D SavingsAccount eotends Account 15. A Timer object gonerates at regular intervals A) ActionEvents B) RuntimeExceptions D) KeyEvents 6 Which of the following is NOT true about abstract classes? A) An abstract class is a plaoeholder in a class hierarchy B) An abstract class cannot be instantiated C) The abstract modfer must be applied to each abstract method in an abstract class D) An abstract class must contain only abstract methods 17. The nstruction super( A) The method super as defined in the current class B) The method super as defined in the current class' parent class C) The constructor in the current class D) The constructor in the current class' parent class calls which of the Olowing? 8 Which one of these is NOT true of Object? A) Root of the class hierarchyC B) Has an equals method Has a print method D) Has a toString method 19 JOptionPane is a class that provides GU A) panels and frames B dialog boxes C) butons D) check boxes 20 Which of these is NOT true about inheritance? A) Methods of the parent class are inherited E) Thechid class can override methods ofth part dats CAll constructors of the parent class are caled automatically D) protected variables of the parent class can be accessed in the child class

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

Step: 3

blur-text-image

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 Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions