Answer Posted / jayapala.pm
String is a collection of characters.
- In JAVA String is a wrapper class,String object can hold
the collection of characters.
- wrapper class is wrap the primitive value with in the
constructor is called wrapper classes.
- Strings are immutable in JAVA(we can't modify the string
object after initialize the value to object)
- String str = "greatJP"; we can assign value directly.This
option only for String class.
- Normally we will declare String str = new
String("GreatJP");
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a void method?
What is the difference between an argument and a parameter?
Is void a return type?
What is module in project?
What is tochararray in java?
Difference between this() and super() in java ?
Can we nested try statements in java?
How is Object Oriented Programming different from Procedure Oriented Programming?
Write a factorial program using recursion in java?
What is the difference between an if statement and a switch statement?
Can we write method inside a method in java?
What is the difference between heap and stack memory?
What are the types of relation?
Write a java program to check if a number is prime or not?
What is meant by class loader? How many types are there?