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
what are Hostile Applets?
Can inner class be public in java?
What is the difference between multitasking and multithreading in Java
What value is a variable of the string type automatically initialized?
Compare Mutex and Semaphore in java.
What are the properties of thread?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
Which methods are used during serialization and deserialization process?
What is the different between get and post?
How do you check if a number is a perfect square?
Write a program to print fibonacci series
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
What does java ide mean?
What is the Scope of Static Variable?
What is dynamic binding(late binding)?