Java7 features – Whats new?

Java7 Features In this blog, let us see few of the features of java7. Use of Strings in switch case Try with resources Automatic Resource Management Binary Literals Diamond Operator 1.Use of Strings in switch case Java has added a language level support for String in switch. Now you can

Continue reading

Java Interview Questions

Java Interview Questions

Java Interview Questions – 50 1.What do you know about Java? Java is a high-level programming language. It is platform independent. The java code runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. Add answers of Q:3 also 2.What are the supported

Continue reading

Java 7 Features – Try with Resources

Java7 Features – Try With Resources

Try With Resources The try-with-resources is a feature introduced in Java7. This is an exception handling technique, which helps to close the resources automatically, after the application gets completed. The use of try-with-resources removes the work of adding finally in your code for closing the resources. An example of a

Continue reading