Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

java mod 7

Quiz yourself by thinking what should be in each of the black spaces below before clicking on it to display the answer.
        Help!  

Question
Answer
It is the ability of objects belonging to different types to respond to methods of the same name, each one according to the right type-specific behavior.   Polymorphism  
🗑
It is the ability to redefine methods for derived classes.   Polymorphism  
🗑
Using one method identifier to refer to multiple functions in the same class   Method Overloading  
🗑
Creating more than one constructor in a class   Constructor Overloading  
🗑
creating multiple methods having same name in one class   Method Overloading  
🗑
Providing a different implementation of a method in a subclass of the class that originally defined a method.   Method Overriding  
🗑
It is the ability for a message/data to be processed in more than one form   Polymorphism  
🗑
What must be true if a child of an abstract parent class does not override all of the parent's abstract methods?   The child class itself must be declared to be abstract.  
🗑
The ability to define more than one function with the same name is called?   Polymorphism  
🗑
Which problem may arise if we use abstract class functions for polymorphism?   All the derived classes must implement the undefined functions  
🗑
Polymorphism is particularly effective for implementing layered software systems. (t/f)   True  
🗑
Which of the following is true about interfaces in java   - An interface can contain following type of members. - A class can implement multiple interfaces. - Many classes can implement the same interface.  
🗑
A class can inherit from multiple abstract classes. (t/f)   False  
🗑
Which of the following classes fail to compile? abstract class X { abstract void method(); } abstract class Y extends X { void Method() { } } abstract class Z extends Y { void Method() { System.out.println("Class Z"); } }   all compiles  
🗑
Can an object of a child type be assigned to a variable of the parent type? For example, Card crd; BirthDay bd = new BirthDay("Lucinda", 42); crd = bd; // is this correct?   Yes--an object can be assigned to a reference variable of the parent type.  
🗑
Can an abstract method be defined in a non-abstract class?   No--if a class defines an abstract method the class itself must be abstract.  
🗑
A method must do either of two things with a checked exception. What are those two things?   (1) Handle the exception in a catch{} block, (2) throw the exception to the method that called this method.  
🗑
Assertions can't be enabled or disabled on a class-by-class basis.   False  
🗑
It is bad practice to throw an AssertionError explicitly.   False  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how
Created by: gabsky