Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes try it 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 "try it" Watch "try it" New topic

try it

ashok khetan
Ranch Hand

Joined: Jul 29, 2001
Posts: 153
a. () is a unary operator
b. () is a function operator
c. An Interface can never be private or protected.
S Khan

Joined: Sep 11, 2001
Posts: 13
() is a unary operater (cast) and it's associativity is from right to left.

-Salman Khan of <A HREF="" TARGET=_blank rel="nofollow">Ditmas Technologies</A><P><A HREF="" TARGET=_blank rel="nofollow">Ditmas' Java</A>
Gagan Indus
Ranch Hand

Joined: Feb 28, 2001
Posts: 346
i guess da ans is
a) true -- cast op or func op
b) true -- func(parameter)
c) true -- yes interfaces r public , always
not too sure about the termiology "function operator" tho !
Gagan (/^_^\)

[This message has been edited by Gagan Indus (edited September 11, 2001).]

Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="" target="_blank" rel="nofollow">My Blog</a>
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
Hi guys,
I think only A is true, since a "function operator" does not make any sense. () after a function name is just the syntax of writing a method and has nothing to do with an operator...
C , in my understanding, is false, since we may have inner interfaces that may be private...

[Blog] [Blogroll] [My Reviews] My Linked In
anurag dwivedi

Joined: May 18, 2001
Posts: 22
I think interfaces can be private or protected.

Sun Certified Programmer for the Java 2 Platform.
I agree. Here's the link:
subject: try it
It's not a secret anymore!