• Post Reply Bookmark Topic Watch Topic
  • New Topic

default method  RSS feed

 
Abigail Decan
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


my compiler is telling me that the beginning of type is illegal.
and i did read the tutorial on default method, and googled, so i hope it's okay to ask.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I see this feature is available only with Java 8 and I'm not sure if Java 8 is already out!
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16059
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is indeed a new feature of Java 8, which is not yet released. (It's going to be released on 18 March, 8 days from today).
 
Abigail Decan
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh i see.
thanks
 
Bhawana Gupta
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one more thing Decan, please be careful when you read oracle tutorials ... myself i have seen some errors/invalid content there in oracle docs for java ... (not sure how Oracle can make these silly mistakes)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!