Core Java Interview questions


Total available count: 646
Subject - Java Technologies
Subsubject - Core Java

Can we change the value of String object once assigned in java?

No,String objects are immutable so the Value of the string object can not be changed once assigned.

 




Next 5 interview question(s)

1

String Object belongs to which package in java?

2

Which can be used to overcome the immutable property of String in java?

3

Why String is immutable in java?

4

What is the difference between creating string object using string literal and using new keyword in java?

5

How can you create String object using new keyword with example?