Java 8

If you have any doubts in the below, contact us by dropping a mail to the Kung Fu Panda. We will get back to you very soon.

New Features

Lambda Expression

	Runnable thread = new Runnable(){
		public void run(){
			System.out.println("Running Thread");

can also be written as

		Runnable thread = () -> System.out.println("Running Thread");


		Runnable thread = () -> { System.out.println("Running Thread") };

Method References

Default method


stream is a sequence of objects flowing from a source, which can be aggregated.

Collections can be converted to streams in two ways

following functions are also available for streams.

Collectors can be used to return the result after processing the elements in a stream.

Nashorn Javascript

New Date Time API