GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

When using a combo box, the _______ displays the name of the…

When using a combo box, the _______ displays the name of the current selection.

Read Details

Which of the following statements about checked and unchecke…

Which of the following statements about checked and unchecked exceptions is NOT true?

Read Details

Consider the following code snippet, assuming that descripti…

Consider the following code snippet, assuming that description is a String and totalPrice is a double: System.out.printf(“%-12s%8.2f”,description,totalPrice); Which of the following statements is correct?

Read Details

The method below generates all nonempty substrings of a word…

The method below generates all nonempty substrings of a word passed as argument.   Assuming that the string contains no duplicate characters, select the statement to complete the method so that it prints all nonempty substrings correctly. public static void printSubstrings(String word) { if (word.length() > 0) { for (int j = 1; j

Read Details

Consider the following code snippet: public interface Measur…

Consider the following code snippet: public interface Measurable { double getMeasure(); ____________ double sum(Measurable[] objects) { // implementation to compute the sum of the Measurable objects } } Which of the following completes the interface declaration correctly?

Read Details

Consider the following code snippet: LinkedList myLList = ne…

Consider the following code snippet: LinkedList myLList = new LinkedList(); myLList.add(“Mary”); myLList.add(“John”); myLList.add(“Sue”); ListIterator iterator = myLList.listIterator(); iterator.next(); iterator.next(); iterator.add(“Robert”); iterator.previous(); iterator.previous(); iterator.remove(); System.out.println(myLList); What will be printed when this code is executed?

Read Details

Suppose you wish to sort an array list of objects, but the o…

Suppose you wish to sort an array list of objects, but the object class does not implement the Comparable interface. Because you are not allowed to modify this class, you decide to provide a comparator object that implements the Comparator interface.  Which method must you implement from this interface to achieve your objective?

Read Details

What features do GUI builders have to speed the development…

What features do GUI builders have to speed the development of the graphical user interface of the program? I setting properties of dialog boxes II automated event-handling code generation III drag and drop of visual components

Read Details

The JFrame has a content pane with a default BorderLayout ma…

The JFrame has a content pane with a default BorderLayout manager. Which method allows changing it to a FlowLayout manager?

Read Details

Insert the missing code in the following code fragment. This…

Insert the missing code in the following code fragment. This fragment is intended to read an input file named dataIn.txt. public static void main(String[] args) __________________ { String inputFileName = “dataIn.txt”; File inputFile = new File(inputFileName); Scanner in = new Scanner(inputFile); . . . }

Read Details

Posts pagination

Newer posts 1 … 59,372 59,373 59,374 59,375 59,376 … 64,641 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top