aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes string array varargs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "string array varargs" Watch "string array varargs" New topic
Author

string array varargs

akila sekaran
Ranch Hand

Joined: Jun 12, 2012
Posts: 48
is String...[] args a legal one ?
Alexei Kaigorodov
Greenhorn

Joined: Feb 24, 2008
Posts: 17
akila sekaran wrote:is String...[] args a legal one ?

No.
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 923
    
    1

akila sekaran wrote:is String...[] args a legal one ?


this is not correct syntax. but String[]...args is a correct syntax for var-args of String arrays. but if you try to do this

public static void main(String[]...args) // will give Error. violates the signature of main method


OCPJP 6(100 %) OCEWCD 6(91 %) OCPJBCD(93%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: string array varargs
 
Similar Threads
hello...I need only help....in this question
date format with MS Access database
Tech Word Game
WA #1.....word association
ResultSet to Array