Tuesday, November 29, 2011

In Java, You can create a String object as:

The main reason you cannot create a button by Button bt1= "abc"; is because "abc" is a literal string (something slightly different than a String object, bytheway)and bt1 is a:String class is extensively used and it is an immutable class (means each time new object is created). so each time you create a String object it goes to memory. if you create using &
Category:Java Interview Questions

No comments:

Post a Comment