Answer Posted / interviewall
The Keywords used in Java for getting the size of a string
or an array is either String.length() or size(), which
returns a Integer.
sizeOf() is not a keyword!
| Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
What is indexof?
What is better - 'bit-shift a value' or 'multiply by 2'?
Is string a class?
What does nullpointerexception mean?
What is the this keyword?
What are the main concepts of oops in java?
Explain the difference between arraylist and linkedlist in java?
What is unsigned char?
Can an interface extend another interface?
Can we force the garbage collection to run?
Can a constructor call another constructor?
What is class and object in java?
What are void pointers?
What is a instance variable in java?
What are the drawbacks of singleton class?