• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle "Associate" Java 7 content, any varargs?

 
Toby Eggitt
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, just wondering if the current Java 7 associate exam has any variable argument list questions in it. The objectives would appear to admit the possibility under the "call methods with arguments..." part, but it would seem to be more reasonable that this be called out in its own right if it is included. I've heard generally in the negative, but wondered if anyone here has seen otherwise?

TIA,
Toby.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe no var-args on the OCAJP exam. I didn't encounter them on the exam.
 
Toby Eggitt
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roel De Nijs wrote:I believe no var-args on the OCAJP exam. I didn't encounter them on the exam.


OK, great, many thanks!
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I start to doubt a little bit

I definitely didn't get any questions where knowledge of how var-args works, is required. But maybe (not 100% sure) a few questions had a var-args parameter, so you need to know that's valid Java syntax.

E.g. instead of a regular main method signature, it could be something like this:
public static void main(String... args) {
// code snippet with complex loop logic
}

So you should recognize it's a valid method signature for the main method and thus not select Compilation fails as the correct answer.

Hope it helps!
Kind regards,
Roel
 
Toby Eggitt
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, OK. That's good to know, thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic