A question bank for every class and subject
Practice questions, with answers and explanations included
794 questions available
Refine
All questions
794 resultsWhich method is used to retrieve the text typed into a jTextField?
Show answer
Convert: 1 KB = ______ GB (Hint: use the conversion chain).
Show answer
A constructor that initializes all data members with default values and takes no parameters is called a:
Show answer
Which component allows only a single line of confidential input, hiding characters with an echo character (default '*')?
Show answer
Convert: 2 KB = ______ GB (Hint: use the conversion chain).
Show answer
Which keyword is used to create a new object of a class in Java?
Show answer
Which component is preferred over checkboxes when many options are available and space needs to be saved?
Show answer
Convert: 3 KB = ______ GB (Hint: use the conversion chain).
Show answer
Which operator is used to access data members and method members of an object?
Show answer
Which JOptionPane method shows a modal dialog box that prompts the user for text input?
Show answer
Convert: 1 MB = ______ TB (Hint: use the conversion chain).
Show answer
Why do all Java classes have access to methods like hashCode() and wait() even without defining them?
Show answer
Getter methods in Java GUI components typically start with which word?
Show answer
Convert: 2 MB = ______ TB (Hint: use the conversion chain).
Show answer
Which access modifier makes a data member or method visible ONLY within its own class?
Show answer
Deleting a parent (container) control also deletes all its child controls.
Show answer
Convert: 3 MB = ______ TB (Hint: use the conversion chain).
Show answer
By default (if no access modifier is specified), what is the visibility of a class member in Java?
Show answer
Two components on the SAME form can have identical names.
Show answer
Convert: 1 Bytes = ______ MB (Hint: use the conversion chain).