编程人 cdmana.com

Review and explanation of six new features of JDK7

JDK7 Review and explain six new features of

  • A: Binary literal quantity
  • B: Number literals can be underlined
  • C:switch Statements can use strings
  • D: Generics simplify , Rhombic generics
  • E: There are many exceptions catch Merge , Each abnormal use or “ | ”
  • F:try-with-resources sentence ,1.7 Version of the standard exception handling code
package com.heima.jdk7;

public class Demo01_JDK7 {
	public static void main(String[] args) {
		System.out.println(0b110);
		System.out.println(100_000);
	}
}
Scroll to Top