Posts

Showing posts with the label Java8

Java 8 - Lambda Expressions

Image
We'll do something interesting today.Let's make a simple student management application which you can insert students,get the information of the students and filter them according to the given conditions.First let's create the basic Person class which is going to help us in entering,getting and filtering student details. public class Person {    public enum Sex {         MALE, FEMALE     }     String name;     Sex gender;     String emailAddress;     int age;     Person(){}     Person(String name, String emailAddress, int age, Sex gender) {         this.name = name;         this.emailAddress = emailAddress;         this.age = age;         this.gender = gender;     }     public String getName() {         return name;     }     p...

Java , Java 8 and RxJava

Image
Hello programmers...!!!.Today we'll have our conversation on something "Advanced".You know Java.You know Java ...,5,6,7.But what on earth is Java 8 and RxJava. Java 8,as the name suggests,the 8th update of the super awesome Java language.The problem is RxJava...something new right??  Okay without further delay we'll discuss about the topic. As I already said Java 8 is the latest revolutionary release of Java. There are many useful and awesome new features included in Java 8 which make our life easier and less complicated. Following you can identify some of the main changes which have taken place in the latest release. Lamda Expressions(Oracle we don't need this.We have Python) Reapeating annotations Improvements in Collection class Performance improvement for HashMap Integration of Stream API to the Collections API New Stream API New Date/Time API Nashron new Javascript engine (Rhino to Nashron) Method references Default Methods Improved type Interfac...