What is difference between length and length() in Java?

Solution

length() is a method for a String class whereas length is a property used to check number of element only for array.

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media