Java 8 Stream continues…
Sorting public class SortExample { public static void main(String[] args) { List list =Arrays.asList(“a1”, “a2”, “b1”, “c2”, “c1”); list.stream().filter(s ->[…]
Read moreAmplify your java knowledge with javagyansite
Sorting public class SortExample { public static void main(String[] args) { List list =Arrays.asList(“a1”, “a2”, “b1”, “c2”, “c1”); list.stream().filter(s ->[…]
Read moreJava provides a new additional package in Java 8 called java.util.stream.By using streams we can perform various aggregate operations on[…]
Read moreSpring provides support for both programmatic and declarative transactions similar to EJB. Programmatic Transactions – With programmatic transactions , transaction[…]
Read moreOne of the core values of functional programming is that functions should be first-class.The term indicates that they are not[…]
Read morestrictfp is one of the keywords introduced in Java to ensure portability and to restore platform independency. Floating point calculations[…]
Read moreReference Type Casting Objects of classes also can be cast into objects of other classes when the source and destination[…]
Read moreWe have the following numeric primitive types: Apart of the above, we have the non numeric primitive type “char” :[…]
Read moreWhenever methods are called stack is formed and whenever an exception is first thrown from the top of the stack[…]
Read morethrow An application can explicitly throw exception using the throw keyword.We can use throw for explicitly throwing custom exceptions. The syntax[…]
Read moreExceptions thrown during execution of the try block can be caught and handled in a catch block. A finally block[…]
Read more