Chapter 36 Flashcards

1
Q

What are JAVA beans

A
Java class that can be easily reused and composed together in an application. 
Any java class that follows certain design conventions can be a JavaBeans component
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A bean class must have a zero argument constructor
True/False
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A bean class should not have any public instance  variables (fields)
True/False
A

True

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

In javabeans, Private values should be accessed through setters/getters
True/False

A

True

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

A bean must be serialized.

True/False

A

True

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