whats string ?

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


Please Help Members By Posting Answers For Below Questions

What is a void method?

606


What is the difference between an argument and a parameter?

629


Is void a return type?

641


What is module in project?

618


What is tochararray in java?

595






Difference between this() and super() in java ?

694


Can we nested try statements in java?

724


How is Object Oriented Programming different from Procedure Oriented Programming?

702


Write a factorial program using recursion in java?

607


What is the difference between an if statement and a switch statement?

754


Can we write method inside a method in java?

649


What is the difference between heap and stack memory?

637


What are the types of relation?

670


Write a java program to check if a number is prime or not?

639


What is meant by class loader? How many types are there?

780