1).what is the difference between below examples
String s="vijay";
String s=new String("vijay");
Answer Posted / uday
Hi All,
Here one object is stored in the heap and you said that
you can change that, but bydefault String objects are
immutable(ReadOnly), how can u change it?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can singleton class be serialized?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
Can we change the scope of the overridden method in the subclass?
What is JFC?
What is the use of keywords in java?
How would you dynamically allocate memory to an array?
How do we access static members in java?
What is byte code and why is it important to java’s use for internet programming?
How can I become a good programmer?
What are the differences between heap and stack memory in java?
Does string isempty check for null?
What are loops in java? What are three types of loops?
What is anagram word?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is the importance of static variable?