How many bytes is a string in java?
Answer / Mohammad Arshad
In Java, the length of a string can vary as it is an object and not a primitive data type. However, each character in a string occupies 2 bytes (assuming UTF-16 encoding).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is gc()?
Is there any need to import java.lang package?
What is basic concept of static in java ?
What is Enum in Java?
Can a double value be cast to a byte?
Is empty list java?
what is the difference between pagecontext and servletcontext?
When is the finalize() called? What is the purpose of finalization?
Write a code to create a trigger to call a stored procedure
explain System.out.println
107 Answers Calpine Technologies, Care, Cognizant, CTS, IBM, IBS, LibSys, Oracle, Spiro Solutions, TCS,
What is data type in computer?
Can we execute a program without main() method?