File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "try it" Watch "try it" New topic
Author

try it

ashok khetan
Ranch Hand

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

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="http://www.ditmas.net" TARGET=_blank rel="nofollow">Ditmas Technologies</A><P><A HREF="http://java.ditmas.net" 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="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>
Valentin Crettaz
Gold Digger
Sheriff

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...
Val


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
anurag dwivedi
Greenhorn

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


Sun Certified Programmer for the Java 2 Platform.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: try it