Faced the following problem: Java 8 does not compile the code with the default method in the interface. At the same time I work exactly on the 8th version: C: \ Program Files \ Java \ jdk1.8.0_51 \ bin \ javaw.exe
interface Colorable{ void colored (); // абстрактный метод default void white(){ // метод по умолчанию. Syntax error on token default System.out.println("белый по умолчанию"); } } class Shape implements Colorable { public void colored (){ System.out.println("окрашен цветом"); } } public class Main { public static void main(String[] args) { Shape b = new Shape(); b.colored(); } } I use Eclipse Build id: 20140224-0627
Syntax error on token "default", delete this token
The type Shape must implement the inherited abstract method
Console Message:
Colorable.white() Exception in thread "main" java.lang. Error: Unresolved compilation problem: at interfDefaultsMetodyPack.Main.main(Main.java:14) 
javacnot played. In what environment do you work with code? - zRrr Nov.