Which of the following methods can be used to reference a character at the indexiof the string?

A. string.charAt(I)
B. string(i).charAt
C. charAt.string(i)
D. charAt(i).string


Answer: A

Computer Science & Information Technology

You might also like to view...

Every class in Java, except ________, extends an existing class.

a. Integer. b. Object. c. String. d. Class.

Computer Science & Information Technology

In the figure above, the item numbered 1 indicates the ____.

A. XML parser B. DTD C. XML prolog D. XML application

Computer Science & Information Technology

Before we reheap up, the first node in the heap was out of order.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

______ describes the ability of a class to derive properties from a previously defined class.

a) Encapsulation b) Inheritance c) Polymorphism d) Information hiding

Computer Science & Information Technology