GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 372 of 928    Print  
Which of the following declare an array of string objects? (Select Multiple)
A) String[ ] s;
B) String [ ]s:
C) String[ s]:
D) String s[ ]:



  
Total Answers and Comments: 3 Last Update: June 05, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 20, 2005 22:09:31   #1  
sandeepcheema007 Member Since: December 2005   Contribution: 8    

RE: Which of the following declare an array of string ...
A B D are the correct answers.All these are valid declarations.The C is not as the limit cannot be specified while creating a refernce for a class(String is also a class).
 
Is this answer useful? Yes | No
June 04, 2008 15:23:56   #2  
peteryan38 Member Since: June 2008   Contribution: 1    

RE: Which of the following declare an array of string objects? (Select Multiple)
b
 
Is this answer useful? Yes | No
June 05, 2008 04:55:51   #3  
Karuna Reddy Member Since: June 2007   Contribution: 40    

RE: Which of the following declare an array of string objects? (Select Multiple)


String s[] {"HAPPY DAYS"};String []s1 {

"SMILE FOR EVER"};

String[] s2 {"WISH ALL THE BEST"};

//String [s] {"ITS WONT WORKS"}



The above three statements works properly


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape