This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method Invocation

 
Shruti Sharma
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a piece of code as below:

-----------------------

public Object selectiveSelect(String finder, String[] collList) throws ApplicationException,
FrameworkException {
Object[] parm = {getAbstractCargo(), collList };
return select(finder, parm);
}
------------------------------

Can someone tell what does the statement below mean?

Object[] parm = {getAbstractCargo(), collList };


Thank you,
-Shruti
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code. It will highlight your code and make it much easier to read. It probably will also increase the number of people helping you. You can edit your post with the button.

It creates an Object array with a length of 2 with the elements initialized to getAbstractCargo() and collList.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic