Skip to main content

Posts

Showing posts from June, 2020

Interface in Java with examples

In java there is another way for achieve Abstraction , That is using Interface. What is Interface in Java? Interface is like java class, but interface has only abstract method and static constants. Interface is used for implement multiple inheritance. multiple inheritance is not supported in java. In simple word Interface is used to achieve multiple inheritance and abstraction. Learn more about Abstraction. All method in interface are public and abstract. Interface only contains abstract method means method does not contain its body. A java class can implement multiple interface. Syntax of Interface Interface interface_name {         // Constants variables.     // Method declaration without body. } Like abstraction, Interface also does not have method body. But interface contains method declaration, Default, Constants and Static methods. Interface is implements by class and then class provides implementation of abstract methods. Interface ca...

Double brace initialization in Java with examples

                                                       In this blog we cover what is double brace in java. Some of you may heard this terms first time. What is Double Brace Intilization? When we use initialization block for an anonymous inner class it becomes double brace initialization in java. Double brace initialization creates an anonymous class derived from the specified class (the outer braces), and provides an initializer block within that class (the inner braces). When we create collection we do following things.      Declare a variable and initialize it.               ArrayList<String> listOfProgramming = new ArrayList<>();           Insert values into collection.           ...

Top Free Website To Learn Programming | Programming Blog

Top FREE Online Courses for learning code and Programming   In this article we talk about best free website to learn programming. 1. EDX EDX is best free plateform for learning programming. EDX is founded and governed by universities and colleges. EDX is also provide Business Management, Humanities, Economic, finance, Engineering, environmental, law and many more courses other than programming. EDX provide top university courses Some of them are courses are paid but you can easily enroll in free cours e and learn. A clear advantage over other plateform is the easy navigation within courses. Videos, discussion forums, tests and further reading materials easily accessible. LINK - EDX 2. FREECODECAMP Freecodecamp is best. If you are beginner then freecodecamp is best place where you can learn coding. You can learn with practical. LINK - FREE CODE CAMP 3.UDEMY Udemy online learning platform was founded in 2010 Udemy can be used as a way for individuals to learn or improve job skil...

Top Free Apps For Leran Programming | Programming Blog

Top Free Applications for learn Coding And Programming In this article we talk about best Free applications for learn programming. If you are beginner or experienced programmer these applications are very helpful. There are plenty of programming apps are available on play store and app store. So, we choose best of them.    So lets see Best Top Free applications. 1. SOLOLEARN Available on android play store and ios app store. Sololearn is more of a community based app for newbie/intermediate developers and has only basic textbook kind reference material. Provides basic level of programming. SoloLearn is best application where you can learn plenty of languages. Java, Python, JavaScript, c++, C#, AngularJs, PHP, Kotlin, SQL, HTML, CSS. In sololearn web designing course also available. Not only languages SoloLearn provides Algorithms, DataStructure(DS). In sololearn great feature are available that is Challenge. you can challenge any person you want. in challenge 5 question are ...

BiFunction in Java with examples

What is BiFunction in Java 8?  BiFunction is a functional interface. It is used for method reference or as a assignment target for Lambda Expression . If you want to learn about Functional Interface check it out this post. Functional Interface BiFunction is a special function who takes two argument and produce result. Syntax of BiFunction @FunctionalInterface public interface BiFunction<T, U, R> Let's see simple example of BiFunction. Example 1 import java.util.function.BiFunction; public class _BiFunction {     public static void main(String[] args) {         // BiFunction with two int parameter and produce int result         BiFunction<Integer, Integer, Integer> biFunction = (arg1, arg2) -> {             return arg1 + arg2;         };                  // call...