Discussion

In above code sample we have used str.length() where length() is a function but for array length we use array.length where length is property.

Categories: Java

faltutech

Pursuing MCA from YMCA University, Faridabad

Leave a Reply

Your email address will not be published. Required fields are marked *

Read previous post:
Find Sum of Digits of Number Simple and Recursive in Java
Find Sum of Digits of Number Simple and Recursive in Java

Simple [crayon-5a2bba6d94d2a012887335/] Recursive [crayon-5a2bba6d94d38182585002/]

Close