Interview prep
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
show | programming paradigm
building blocks: Class and Object.
🗑
|
||||
Class | show 🗑
|
||||
Object | show 🗑
|
||||
show | Polymorphism
Inheritance
Abstraction
Encapsulation
+Aggreagation
+Composition
+Association
🗑
|
||||
Polymorphism | show 🗑
|
||||
show | allows a Child class to inherit properties from its parent class
extends keyword
Only properties with access modifier public and protected can be accessed in child class.
🗑
|
||||
Abstraction | show 🗑
|
||||
show | Combination of methods and attribute into a class.
The class protect it's properties by exposing only public methods.
🗑
|
||||
Aggreagation | show 🗑
|
||||
Composition | show 🗑
|
||||
Association | show 🗑
|
||||
show | compile time polymorphism
same name but different method signature or different number or type of parameters.
🗑
|
||||
show | runtime polymorphism
method in a child class has the same name and signature as a method in the parent class.
🗑
|
||||
show | If a child class inherits the property from multiple classes
🗑
|
||||
show | No.
at runtime it becomes difficult for the compiler to decide which method to execute from the child class.
🗑
|
||||
difference between polymorphism and inheritance? | show 🗑
|
||||
does java support multiple inheritance of interface? | show 🗑
|
||||
Diamond problem. | show 🗑
|
||||
Interface | show 🗑
|
||||
show | extends keyword
mandatory to implement all abstract methods.
🗑
|
||||
show | Private: inside the class
Protected: same package, or diff pkg if the class extends the main class
Default: only accessible in the same package
Public: accessible from a diff pkg
🗑
|
||||
final keyword | show 🗑
|
||||
Synchronized keyword | show 🗑
|
||||
Static variable | show 🗑
|
||||
Static method | show 🗑
|
||||
Static class | show 🗑
|
||||
Throw keyword | show 🗑
|
||||
JDK, JRE and JVM | show 🗑
|
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.
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
Normal Size Small Size show me how
Created by:
3336678016347028
Popular Computers sets