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!
|
|
||||
---|---|---|---|---|---|
OOP Object Oriented Programming | show 🗑
|
||||
show | Attributes and methods defining an Object
🗑
|
||||
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 🗑
|
||||
Encapsulation | show 🗑
|
||||
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 🗑
|
||||
show | ambiguity where the compiler doesn't know which superclass method to execute
🗑
|
||||
Interface | show 🗑
|
||||
abstract class | show 🗑
|
||||
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 🗑
|
||||
show | Only one thread at a time can access synchronized methods
🗑
|
||||
show | Multiples objects of a class shares the same instance of a static variable.
🗑
|
||||
show | can be accessed without creating the objects
can only access static variables and not local or global non-static variables
🗑
|
||||
Static class | show 🗑
|
||||
show | used to throw the exception manually
subclass of Throwable.
🗑
|
||||
show | Java Development Kit: software development tools
Java Runtime Environment: Library and classes, env to execute Java applications
Java Virtual Machine: Runtime Instance
🗑
|
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