I am quite new to using java 8 & haven't really used annotations before. When I try to write a simple program for functional interface using eclipse oxygen, java 8 & specify annotation @FunctionalInterface, I see the red x (error) saying FunctionalInterface is not an annotation type.
Please help to resolve this. I understand that giving an annotation is not mandatory, also my program runs fine without it, but still I want to use it.