Question: 1. Which statement likely pertain to an object in Java? a. Objects and class are one of a kind b. Objects describe a class c.
1. Which statement likely pertain to an object in Java? a. Objects and class are one of a kind b. Objects describe a class c. Objects represent individual instantiations of the class d. Classes are created from objects 2. Select the best possible definition of a method from the choices below a. Public Void testlmage0 (write source code hear) b. public void testlmage0:(write source code hear) c. public int testlmage0(write source code hear); d. public int testlmageOffwrite source code here) 3. Objects communicate by which of the following By calling classes a. b. Calling each other's methods c. The fields in the method are what is passed on from object to object d. The object structure is well suited to communicating How would you define the source code? a. 4. All the comments in the program b. The executable statements in the program c. It defines the class d. It defines the objects 5. Which field or variable is define as type 'string'? a. Private string boy b. Private string boy c. Private String girl; d. private String girl; 6. Methods may return information about an object a. Via a return value b. c. d. Via a return method By using another method By use of a class 7. The 'signature' of a method is String getName0. What does that tell us about the metho a. The word 'String' tells the return type b. 'String' is the method type c. The word 'String' identifies only the parameters d. The word 'String' should only be used for fields
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
