why java has the size of character 2 byte ,while in c/c++ it
is of 1 byte?

Answer Posted / eknath337

Bcz of the JVM internally representing the character in
Hexadecimal system.That's why it is using 2 byte instead of
1 byte.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are command line arguments passed as a string?

500


What if I do not provide the string array as the argument to the method?

505


How do I open java console?

502


What is rxjava2?

477


explain isalive() method under thread class?

583






Which is more secure: java or activex? : java security

517


What are the types of cookies in java?

504


Define network programming?

531


What is @resource annotation in java?

491


Why bean class is used in java?

454


What is interceptor in java?

470


What type of parameter passing does java support?

468


What is the difference between collection and stream?

476


How should I format my code? How should I comment my code?

493


How many types of jdk are there?

496