If greeting refers to a String object, which of the following is a syntactically correct Java statement?
A) System.out.println(length() .greeting) ;
B) System.out.println(greeting() ) ;
C) System.out.println(greeting.length() ) ;
D) greeting.println("Hello") ;
Correct Answer:
Verified
Q40: Which statement about methods is true?
A)A method
Q41: What does API stand for?
A)Applet Programming Interface
B)Application
Q42: A(n) _ is a collection of classes
Q43: Which of the following statements about methods
Q44: Which operator constructs object instances?
A)new
B)instanceof
C)void
D)construct
Q46: Which is not a method of the
Q47: Which of the following represents a method
Q48: Which statement calls a constructor with no
Q49: Which term describes a method of an
Q50: Which statement declares a variable that references
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents