We know that Arrays are objects so why cannot we write strArray.length()?
Answer / Suraj Singh
Arrays in Java are not objects of the Object class, but rather primitive types or wrapper classes for primitive types. Therefore, they do not inherit methods like length(), which is a method specific to the String object.
| Is This Answer Correct ? | 0 Yes | 0 No |
What data structure underlies a python list?
What is difference between data type and data structure?
What is the default capacity of hashmap?
What is a pseudocode example?
Define a Deque?
Explain binary searching and Fibinocci search?
What is impact of signed numbers on the memory?
How do you define a set?
Describe tree database. Explain its common uses.
What is data structure? Explain.
Program to remove duplicate elements in an array.
What does isempty() member method determines?