How to find the size of an array
a)array.length()
b)array.length
c)array.size()
d)array.size
Answer Posted / nagesh
length is a public static final variable in an array which
will specify the capacity of that array. length() is a
function on strings to find number of characters in that.
| Is This Answer Correct ? | 11 Yes | 6 No |
Post New Answer View All Answers
How do you pass by reference?
You're given a Boolean 2D matrix, can you find the number of islands?
What is oop principle in java?
I want to persist data of objects for later use. What is the best approach to do so?
What are 4 pillers of object orinted programming?
What is api in java?
What is stringjoiner ?
What is a for loop in java?
What is java console application?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
What modifiers may be used with an inner class that is a member of an outer class in java programming?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is the properties class in java programming?
What do you know about the garbate collector?
Why is multithreading important?