Question
Why string objects are immutable in java?

Answers

Because java uses the concept of string literal. Suppose there are 5 reference variables,all referes to one object "sachin".If one reference variable changes the value of the object, it will be affected to all the reference variables. That is why string objects are immutable in java.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q If the Head of the State is an elected functionary for a fixed term, it is known as ____State.
  • Q What is the FAMILY for short-tailed shrew?
  • Q Why is iron important?
  • Q The unit of length in the metric system, equal to one billionth of a metre is known as a _____ ?
  • Q A friend wants to start a grape vine from a set of vines growing at his mother's house. Should we start from seeds, or would it be best to take cuttings of the old vines?
  • Q What is the inflorescence of Rigodiaceae ?
  • Q What are the manifestations of portal hypertension?
  • Q All of the following are steps to follow when refreshing your memory for testifying in court except: (A)Review your reports (B)Talk with prosecutors (C)Review your personal notes (D)Re-interview witness and victims
  • Q type duplicates of a row in a table customer with non uniform key field customer no. you can see a) delete from costomer where customer no. exists(select distinct customer no. from customer having count) b) delete customer a where customer no. in(select customer b where custermer no. equal to b custemor no.) and a rowid > b rowid c) delete customer a where custermor no. in (select customer no. from customer a, customer b) d) none of the above
  • Q Abnormal component of urine is–
  • Q Microsoft intermediate language (MSIL)