How many characters is 2 bytes?



How many characters is 2 bytes?..

Answer / Hitesh Pandey

The number of characters that a 2-byte sequence can represent depends on the encoding scheme. In UTF-16, which is commonly used in Java, 2 bytes can represent up to 65,536 unique code points.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is stack explain?

1 Answers  


How HashMap implemented in java? how it internally works when values are added or searched from hashMap?What is the difference betweenthe implementation of hashmap and Linked Hashmap?

3 Answers   IBM,


for(i=0;i<100;i++) { int i=method();//method returns no's from 1 to 10; /* insert some stmts which can give output like no.of times numbers(1-10) returned. (for example if it returns 2 then i want output how many times 2 returned) like that i want output for no's 1 - 10 how many times each no returned. */ }

3 Answers  


What is difference between null and void?

1 Answers  


What is the benefit of inner / nested classes ?

1 Answers  


What is Exception handling in Java How do you handle run time errors please explain with an example

2 Answers   Mastek, TCS,


what is Thread priority?

4 Answers   Tech Mahindra, Wipro,


What is the function of java?

1 Answers  


What is thread life cycle in java?

1 Answers  


Explain an algorithm to find depth of a binary tree.

1 Answers   Akamai Technologies,


Is set sorted in java?

1 Answers  


What is the use of arrays tostring () in java?

1 Answers  


Categories