File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Can member fields of an interface be set from some other class
Joined: Mar 10, 2010
Mar 23, 2010 03:40:08
I have an interface with static field . Can we create a reference of the interface and set the member fields of the interface from some other class. ?
Joined: Dec 08, 2009
Mar 23, 2010 04:05:25
Interface fields are final by default.
You cannot change, once initialized.
Joined: Sep 29, 2008
Mar 23, 2010 07:00:35
Please see the
JavaRanch naming policy
change your display name
to conform with this policy. Thanks!
I agree. Here's the link:
subject: Can member fields of an interface be set from some other class
Sierra and Bates - Interface Access Modifiers
Why data members are private when we can access them through getter/setters?
question from anilbachi scjp suit ver 1.0
Stream and writer
Kathy / Bert interface question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015