GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes Can member fields of an interface be set from some other class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can member fields of an interface be set from some other class" Watch "Can member fields of an interface be set from some other class" New topic
Author

Can member fields of an interface be set from some other class

ragi singh
Ranch Hand

Joined: Mar 10, 2010
Posts: 198

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

Interface fields are final by default.

You cannot change, once initialized.


- Chinna
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please see the JavaRanch naming policy. Please change your display name to conform with this policy. Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can member fields of an interface be set from some other class