Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

which of the following gives the number of characters in aer ing varalle called-tr ? A str.length B. str.charat C. str.length( D. str.charAc 11 9.

image text in transcribed
which of the following gives the number of characters in aer ing varalle called-tr ? A str.length B. str.charat C. str.length( D. str.charAc 11 9. The Property of an aray holds the mumber of elements that the array has A. width B lenenta C. lengtht) D. Length E size 10. What is the result of ranning these two statenents? String s "Jas" systen.out.printinis. indexDEa) A. 0 B. 1 D. 3 E. compiler error 11. What does the following statement do? doubiet] arraylnew double1101 A. Declares array1 to be a reference to an array of double values B. Creates an instance of an array of 10 double values C. Will allow valid subscripts in the range of O-9 D. All of the above 12. Unlike other methods, a static method of a class A. may be called without an object of the class B. is stored in a class that can't be instantiated C cannot accept arguments D. must be called from an object of the class 13. If the passArray() method d receives as a parameter an int array with the name someInts. Which a of the following is the correct method header? A. public static void passArray(int[1 soneIntst)) B. public static vold passArray(int I) soneInts) C. public statie void passArray (soneInts) D. public static vold passArrayfint someInts) 14. Which of the following statements is correct? Two or more methods in a class may have the same name as long as they have different return A. B. Two or more methods in a class may have the same name as long as they have different return C. Two or more methods in a class may have the same name as long as they have different D. you cannot have two methods with the same name types. types, but the same parameter list. parameter lists. Page 2 of 3

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

Step: 3

blur-text-image

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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions