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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Arguments in method" Watch "Arguments in method" New topic
Author

Arguments in method

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hi
One of the question in Jworski exam is
is the statement below true
"getComponent() method is used to access a Component in a container."
Answer given is true.
But there is no getComponent method with no argument.
Instead there is a method (I remember) : getComponent(int i)
So while answering such types of questions should we ignore the argument list?
Thanks
Shikhar
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12683
    
    5
The style of giving a method name like this:
getComponent()
when in reality the method takes some arguments is pretty widespread. You will have to try to figure out from the context of the question whether it is about the existance of a no-args method.
Bill

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Arguments in method
 
Similar Threads
problem while creating wizard using netbeans
ComponentZOder Questions
Cursor issues in JTextarea
removing listeners
Accessing Outer Class