Chapter 9 Flashcards

1
Q

Should io functions use try catch

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to define abstract class in JAVA

A

by using abstract keyword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to define a method abstract in JAVA

A

by using abstract keyword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Does interface a pure abstract class

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is pure abstract class / interface

A

In there, there is no implementation, only method signatures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to define an interface

A

By using interface keyword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Who implement interface

A

classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

If a class implementing interface does not provide definition of all methods, it will not compile. How could we compile it

A

By making it abstract

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can class implement more than one interface

A

yes. multiple inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Can an interface inherit from another interface

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can an object of interface instantiated

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are abstract classes

A

Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly