Solved

If Greeting Refers to a String Object, Which of the Following

Question 30

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions