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 is meant by polymorphism?
What are the skills required for core java?
Can an unreferenced object be referenced again?
Explain access specifiers?
How garbage collection is done in java?
How do you take thread dump in java?
Why is stringbuffer not immutable?
How do you format in java?
Difference between ‘>>’ and ‘>>>’ operators in java?
What is lambda expression in java?
What is the difference between stringbuffer and stringbuilder class?
What is instance means in java?
What is the functionability stubs and skeletons?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
What is percentage in java?