why string is not taking as primitive datatypes but we r
taking it as a class? why explain it?

Answer Posted / ankit

All primitive types have fixed memory size. Now in case of
the String, its length is not fixed and so is its size.
That's why it cannot be a primitive data type.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is an empty arraylist null?

587


How do you sort a string in java?

529


What is file in java?

551


Is a case study a method or methodology?

456


List two java ide’s?

602






What are serialization and deserialization?

715


How is tree Mirroring implemented?

625


What are the 6 mandatory procedures for iso 9001?

523


Explain static nested classes ?

585


Is oracle java 11 free?

517


What is the diffrence between inner class and nested class?

554


Can you instantiate the math class?

594


Mention some features of java?

534


How can a gui component handle its own events?

586


What is the difference between the ">>" and " >>>" operators in java?

501