Java 8

Java 8 related article tag

Single Abstract Method (SAM) and Functional Interface in Java

Upasana | December 16, 2019 | 2 min read | 387 views | Java 8

Interface that has single abstract method (SAM), is known as functional interface. We can supply a lambda expression whenever an object of an functional interface is expected.

Read Article

Generate Random Numbers in a range using Java 8

Upasana | December 27, 2017 | 1 min read | 208 views | Java 8

This Random.ints(int origin, int bound) or Random.ints(int min, int max) generates a random integer from origin (inclusive) to bound (exclusive).

Read Article