Posts

Showing posts with the label java11

JAVA 11 – New String methods

JAVA 11 – New String methods In this blog, we will discuss about all six new methods which got introduced with JDK 11. isBlank(): returns true if string is empty otherwise false. White spaces code will also be considered as empty string. // Java 8 Predefine Functional Interface              // The best way to learn JAVA 8 is to implement it wherever you can...              BiConsumer<String, String> display = ( msg1 , msg2 ) -> System. out .println( msg1 + msg2 );              // local variable type inference              var msg = "Welcome to waheedtechblog page" ;              // String msg = "Welcome to waheedtechblog page"; both are same ...