#javaspringtutorial
Explore tagged Tumblr posts
javaspringtutorials-blog · 4 years ago
Text
JAVA 8 Default Methods
Java 8 allows you to add non-abstract methods into interfaces and these methods must be declared as default.
Below is an example of the default method in the interface.
public interface Test{
default void copy(){
System.out.println("I am copy");
}
}
public class Utility implements Test{
public static void main(String[] args){
Utility utility = new Utility ();
utility .copy();
}
}
Output: I am copy
For more detail visit - javaspringtutorials
2 notes · View notes
svrtechnologies · 8 years ago
Video
vimeo
You can learn your interested course at anywhere and anytime without wasting your time, money and energy. Might me a doubt running in your mind that how could be the online courses would be! So for that we provide you the basic ideas of Spring Hibernate Online Training and which is absolutely for free and free demo will be provided before joining the course. So, you will have a clear view about the online java training. website : https://goo.gl/DNcDma
0 notes