When you employ ____, your data can be altered only by the methods you choose an
ID: 3581180 • Letter: W
Question
When you employ ____, your data can be altered only by the methods you choose and only in ways that you can control.
Which of the following is the method used to display a dialog box to gather input?
What layout manager should you use so that every component occupies the same size in the container?
The ActionListener interface contains the ____ method specification.
The method __________ sets the font (Helvetica, 20-point bold) in component C.
The methods in a subclass can use all of the data fields and methods that belong to its parent, with one exception: ____ members of the parent class are not accessible within a child class’s methods.
Which of the following statements starts a polygon named pol at the coordinates 20 and 290?
The ____ method requires four arguments and draws the outline of a rectangle using the current drawing color.
Usually, the subclass constructor only needs to initialize the ____ that are specific to the subclass.
Assume s is " abc ", the method __________ returns a new string "abc".
MysteryClass
According to the UML class diagram in the accompanying figure, which method is public and doesn’t return anything?
If you want to place an image on a button, it is simplest to use the ____ class.
To convert a String to an integer, you use the valueOf() method of the ____ class.
Which of the following most completely describes the steps for setting up event handling for a GUI component?
When an object of one class is a data field within another class, they are related by ____.
To specify an italic font, you pass ____ to the constructor.
Suppose s is a string with the value "java". What will be assigned to x if you execute the following code?
char x = s.charAt(4);
When you create a class and do not provide a(n) ____, Java automatically supplies you with a default one.
___________ can be used to enter or display a string.
Suppose that the class Mystery is derived from the class Secret. Consider the following statements.
Secret secRef = new Secret();
Mystery mysRef = new Mystery();
Which of the following statements is legal in Java?
(i) secRef = mysRef;
(ii) mysRef = secRef;
The JCheckBox, JComboBox, and JRadioButton components are associated with the ____ method.
The String class ____ method accepts an argument that identifies the field delimiter and returns an array of Strings.
Inheritance is an example of what type of relationship?
Exceptions can be thrown by:
____ variables are variables that are shared by every instantiation of a class.
Image objects are displayed using which Graphics method?
virtual method callsExplanation / Answer
Inheritance is an example of is-a relationship.
Image objects are dispalyed using drawImage Graphics Method .
The String class split() method accepts an argument that identifies the field delimiter and returns an array of Strings.
A text field can be used to enter or display a string.
When you create a class and do not provide a(n) constructor , Java automatically supplies you with a default one.
Assume s is " abc ", the method s.trim() returns a new string "abc".
showInputDialog method used to display a dialog box to gather input.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.