File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes regarding var-args 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 "regarding var-args" Watch "regarding var-args" New topic

regarding var-args

RatnaSekhar Kamireddy

Joined: Aug 28, 2006
Posts: 3
hi this is ratna sekhar . i am preparing scjp.
i have finished first chapter in kathy sierra and bret bates.
In first chapter , there is a new topic regarding var-args.
they gave the syntax of how to declare the var-args and how to use(invoke);
but they didnt give regarding of definition of that method.
how the arguments in the var-arg method initialized.
please tell me in depth
ok bye
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643

Check code above it shows all details about var args.
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Chapter 5: Creating Varargs in Java 1.5 Tiger
Burkhard Hassel
Ranch Hand

Joined: Aug 25, 2006
Posts: 1274
gowher amin naik recently wrote:

Hi, to make it clearer it should have been:


all events occur in real time
Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243

You would find varargs very handy when you need to write a method which could take 'n' number of parameters for a given argument.

It is equivalent to writing a method which takes an array argument.
I agree. Here's the link:
subject: regarding var-args
It's not a secret anymore!