Fill in the blank space  1. The ____________ keyword is used to create a new instance or object of a class  2. ______________ is the concept of closely controlling access to an object's attributes and is also called information hiding  3. A ____________ is a method that is used 5o set the initial state of an object when it is created. 4. (i) Method _________ is the process of changing the number and type of parameters of a method (ii) Method __________ is the process of replacing a method in a superclass with a new implementation in the subclass 5. A ______________ expression is an expression that evaluates to either true or false. 6. In Java polymorphism means that a class or object can be treated as multiple different types. Which of the following statements regarding polymorphism in Java are true? Select all that apply. A.  A subclass can be treated as any of it's ancestor (super) classes. B. A Java class can be treated as any interface it implements C. A Java class can be treated as any type that extends/inherits from it (subclasses) D. All Java classes can be treated as the Object type. 7. Which of the following items can the 'final' keyword be applied to? Select all that apply.    A. expressions    B. variables    C. classes    D. methods

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Fill in the blank space 

1. The ____________ keyword is used to create a new instance or object of a class 

2. ______________ is the concept of closely controlling access to an object's attributes and is also called information hiding 

3. A ____________ is a method that is used 5o set the initial state of an object when it is created.

4. (i) Method _________ is the process of changing the number and type of parameters of a method

(ii) Method __________ is the process of replacing a method in a superclass with a new implementation in the subclass

5. A ______________ expression is an expression that evaluates to either true or false.

6. In Java polymorphism means that a class or object can be treated as multiple different types.

Which of the following statements regarding polymorphism in Java are true? Select all that apply.

A.  A subclass can be treated as any of it's ancestor (super) classes.

B. A Java class can be treated as any interface it implements

C. A Java class can be treated as any type that extends/inherits from it (subclasses)

D. All Java classes can be treated as the Object type.

7. Which of the following items can the 'final' keyword be applied to? Select all that apply.

 
 A. expressions
 
 B. variables
 
 C. classes
 
 D. methods
 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Software Development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education