1).what is the difference between below examples
String s="vijay";
String s=new String("vijay");
Answers were Sorted based on User's Feedback
Answer / ravikiran
first one will create an object on the heap
second one will create two objects one will saved on the
heap and another will get saved on the string pool
| Is This Answer Correct ? | 0 Yes | 6 No |
Answer / p.sreekiran
in first string class it create in heep memory and second
is created object in constant memeory we cannot change the
second one
| Is This Answer Correct ? | 2 Yes | 13 No |
What are the three parts of a lambda expression? What is the type of lambda expression?
What is java beans?
What is the difference between getCodeBase and getDocumentBase methods?
1 Answers CS Business Services,
Catch(Exception e){ } in that what is Exception and purpose of that in that place exactly?
what is the final keyword denotes in java?
How list contains works in java?
What is string intern in java?
Hi friends, i am new to java. can you explain how java is secured.
How many ways can we create the string object?
What is use of static method?
Tell me how many ways are there to initialise an integer with a constant.
What is Three tier architecture. Can anyone explain with a Ordinary web application Project? (JSP,Servlets,JAVA,DAO) ?