Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(TCOs 16) The column names that are displayed in a JTable can be specified by using the _____ method of the DefaultTableModel. (Points : 4)

(TCOs 16) The column names that are displayed in a JTable can be specified by using the _____ method of the DefaultTableModel. (Points : 4)
.formatColumns .setColumns .setColumnNames .setColumnIdentifiers

Question 2.2. (TCOs 16) What is the output of the code below? double num = 56.4321; System.out.printf("%.1f", 56.4321); (Points : 4)
%.1f %.1f56.4321 56.4321 56.4

Question 3.3. (TCOs 16) The signature of a method consists of (Points : 4)
method name and parameter list. return type method name. parameter list.

Question 4.4. (TCOs 16) What is the representation of the third element in an array called? (Points : 4)
a(2) a[2] a[3] a(3)

Question 5.5. (TCOs 1, 2, and 6) A key part of enabling the JVM to locate and call method main to begin the apps execution is the _____ keyword, which indicates that main can be called without first creating an object of the class in which the method is declared. (Points : 4)
class private static public

Question 6.6. (TCOs 16) Invoking _____ returns the number of the elements in an ArrayList x. (Points : 4)
x.getLength(0) x.size() x.length(1) x.getSize()

Question 7.7. (TCO 1, 4, and 6) The maximum number of radio buttons that can be selected within a ButtonGroup is (Points : 4)
1. 2. 5. all.

Question 8.8. (TCOs 16) What is the output of running class C? class A { public A() { System.out.println( "Calling default constructor of A"); } } class B extends A { public B() { System.out.println("Calling default constructor of B"); } } public class C { public static void main(String[ ] args) { B b = new B(); } } (Points : 4)
Calling default constructor of A Calling default constructor of B Callng default constructor of A Calling default constructor of A Calling default constructor of B Calling default constructor of B

Question 9.9. (TCOs 16) Suppose ArrayList x contains two strings [Beijing, Singapore]. Which of the following methods will cause the list to become [Chicago, Beijing, Singapore]?(Points : 4)
x.add("Chicago") x.add(2, "Chicago") x.add(0, "Chicago") x.add(1, "Chicago")

Question 10.10. (TCOs 1, 5, and 6) A string with delimiters can be parsed into separate fields using the _____ class. (Points : 4)
StringParse ParseString StringTokenizer TokenizeString

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

What is an employee assistance program?

Answered: 1 week ago

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago