CodesJava

Easy learning with example program codes

Java 7 features with examples


Java 7 String In Switch Case Statement

Java switch statement: 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 7 Try With Resources Example

Resource: 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 7 Binary Literals Example

Binary Literals 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

Java 7 Numeric Literals With Underscore

Numeric Literals 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

Java 7 Catch Multiple Exceptions

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
Sign Up/ Sign In
Ask a Question


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki