Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 12756
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Arguments in method
 
Similar Threads
Cursor issues in JTextarea
problem while creating wizard using netbeans
removing listeners
Accessing Outer Class
ComponentZOder Questions