What are the new features in java 7
Still popular java interview question, yesterday I was appeared in one of the world's largest investment banking company's interview and interviewer asked me to list down the new features of java 7 I thought it was java 8 but when, I re-confirm then interviewer replied yes you have to list down the new features of java7. So, I decided to post a topic on new features of java 7, In this post I am going to list down all the new features of java7 with code example. The java 7 features are still on demand not only in real time use but in interview also like java program to balanced parentheses Below are the list of new features of java 7 String in switch Try-with-resources statement Underscores in numeric literals Binary literals Multiple exception catching Improved Type Inference for Generic Instance Creation SafeVarargs String in switch: Now you can use Strings in switch statements. public static void stringInSwitch(String months) { final String JAN = "...