jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interface" Watch "Interface" New topic


durga ramakrishnan

Joined: Jul 30, 2007
Posts: 14
whether we can have interface like given below,
publis Interface inter1{
public static final ClassA a=new ClassA();
please help in this.Dont mistaken as i have asked the basic question

fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11955

Have you tried it? What happened?

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Matthew Cox

Joined: May 25, 2009
Posts: 29
This isn't a forum to have others do the explorational work or just hand you the answers.

Code it and try it youself and see if it even compiles.
I agree. Here's the link: http://aspose.com/file-tools
subject: Interface
It's not a secret anymore!