• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interface

 
durga ramakrishnan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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

Thanks,
Durga.R
 
fred rosenberger
lowercase baba
Bartender
Posts: 12186
34
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it? What happened?
 
Matthew Cox
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic