Exceptions cannot be thrown from constructors. When an error is detected in a co
ID: 3807670 • Letter: E
Question
Exceptions cannot be thrown from constructors. When an error is detected in a constructor, some sort of status flag should be set that can be checked after the object is created.
When the toString() method is invoked on any Throwable object, its resulting string includes the descriptive string that was supplied to the constructor.
An exception can be created without supplying a descriptive string to the constructor that describes the error.
All of the above statements are true.
JButton
JToggleButton
JRadioButton
JCheckBox
Explanation / Answer
Option 1 is correct choice.
2.
JButton is a stateless.
Option 1 is correct choice.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.