1/29
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Recursion
______ is the technique of making a function call itself
Recursion
This technique provides a way to break complicated problems down into simple problems which are easier to solve
infinite recursion
Just as loops can run into the problem of infinite looping, recursive functions can run into the problem of _______
method overloading
With ______, multiple methods can have the same name with different parameters
number, parameters
Multiple methods can have the same name as long as the ____ and/or type of ______ are different.
method overriding, child, parent
With ______, a child class can give its own implementation to a method which is already provided by the parent class
parent class
_____ is called overridden method
child class
the method in _____ is called overriding method
inherited
The class can give its own specific implementation to a ____ method without even modifying the parent class code
Type modifiers
_____ are keywords used in the identifier definitions to change their meanings
precedes
To use the modifiers, it ____ the statements that include its keyword in the definition of a class, method, or variable.
default
Identifiers defined without any access modifier keyword will have a _____ modifier access.
public
Identifiers can be accessed by all the other classes in the project.
private
If an identifier is declared as ____, then it can be accessed within the class. The identifier would not be available outside the class. The outside members cannot access the ____ members.
protected
If an identifier is declared as ____, it can be accessed within the same package classes and sub-class of any other packages.
default
Scope only inside the same package
public
Scope is visible to world
private
Scope only within the classes only
protected
Scope of the package and all subclasses
subclasses
Methods declared public in a superclass also must be public in all _____
protected, public, private
Methods declared protected in a superclass must either be _____ or ____ in subclasses; they cannot be _____
private
Methods declared ____ are not inherited at all, so there is no rule for them
final
The ___ keyword is used to make any class, method, or variable final
final
A ____ variable that is initialized can no longer change its value again
abstract
An ____ class or method cannot be final because an abstract class is intended to be extended in other classes and made for the purpose of being overriding the method body
one abstract method
To define an abstract class, at least _______ should be defined in a class.
abstract
If we have to declare abstract methods in a class, a class must be an _____ class
volatile
The ____ keyword is applied only to private or object type instance field or variable
volatile
A _____ variable synchronizes all the available cached copies of variables in memory
transient
The ____ keyword is an instance variable declaration instructs the JVM to skip the variable or field while serializing the object containing that variable