Campus and Interview preparation with Java
Java Interview Questions Java is one of the most used programming language in the world. Java is versatile and covers most of the domains from desktop applications to cloud application. Several IT companies requires java professionals (fresher or experienced). Here we try to provide list of frequently asked java interview questions. What is immutable object in Java? Immutable classes are Java classes whose objects can not be modified once created. Any modification in Immutable object result in new object. For example is String is immutable in Java. Mostly Immutable are also final in Java, in order to prevent sub class from overriding methods in Java which can compromise Immutability. You can achieve same functionality by making member as non final but private and not modifying them except in constructor. source thanks to - www.mysirg.com for providing this materials What is the difference among String, StringBuffer and StringBuilder in J...







Comments
Post a Comment