A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
Can member fields of an interface be set from some other class
ragi singh
Ranch Hand
Joined: Mar 10, 2010
Posts: 198
I like...
posted
Mar 23, 2010 03:40:08
0
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. ?
Chinna Eranna
Ranch Hand
Joined: Dec 08, 2009
Posts: 174
I like...
posted
Mar 23, 2010 04:05:25
0
Interface fields are final by default.
You cannot change, once initialized.
- Chinna
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Mar 23, 2010 07:00:35
0
Please see the
JavaRanch naming policy
. Please
change your display name
to conform with this policy. Thanks!
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Can member fields of an interface be set from some other class
Similar Threads
Sierra and Bates - Interface Access Modifiers
Stream and writer
question from anilbachi scjp suit ver 1.0
Why data members are private when we can access them through getter/setters?
Kathy / Bert interface question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter