Java 7 Type Inference
Java 7 introduced a new feature Type Interface which provides ability to compiler to infer the type of generic instance. We can replace the type arguments with … Read More
Java 7 introduced a new feature Type Interface which provides ability to compiler to infer the type of generic instance. We can replace the type arguments with … Read More
Java 7 provides the facility to catch multiple type exceptions in a single catch block to optimize code. We can use vertical bar or pipe (|) to … Read More
Java 7 provides the facility to use underscore in numeric literals like int, byte, short, float, long, double. We can use any number of underscore … Read More
In Java 7, the integral types (byte, short, int, and long) can also be expressed using the binary number system. To specify a binary literal, … Read More
A resource is an object that must be closed after the program is finished with it. For example a File resource or JDBC resource for database … Read More
Java switch statement is used to execute a block of statement based on the switch expression value. It is like if else if statement.… Read More
Java varargs provides the facility to a method to accept variable number of arguments. Varargs refers to variable-length arguments. A variable-length argument is specified by three dots … Read More