wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes name of ... operator. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "name of ... operator." Watch "name of ... operator." New topic
Author

name of ... operator.

Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 253

As we know that the declaration of format method is as follows -



Can somebody tell me the name of ... operator.


Regards
Salil Verma
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

I don't think that's an operator...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 253

Then what is it (...) and what is it's name. I only know the purpose.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Its called ellipsis (there's no specific word in Java for it, its just called ellipsis as in general English). It is a part of the java language syntax...
Nitish Bangera
Ranch Hand

Joined: Jul 15, 2009
Posts: 537

I was wondering before asking the name of (...) why didn't the name for ([]) was asked? Well as Ankit said its the part of the java syntax more like (;), (, (,) etc. I don't think SCJP6 exam asks the name of the operators at all.


[ SCJP 6.0 - 90% ] , JSP, Servlets and Learning EJB.
Try out the programs using a TextEditor. Textpad - Java 6 api
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

The "..." are used for Java's varargs syntax.

It's not really an operator; an operator is a thing that works on one, two or three values, for example the + operator works on the values that are to the left and right of it.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
wood burning stoves
 
subject: name of ... operator.
 
Similar Threads
How to access Map contents in jsp page
JDBC supported SQL functions
bean:write format string as number
Question mark in Java
Generating Random operators for an array of operands