10.2k views
1 vote
Write the java statement to creat an object mp4 class digital​

User Drizzd
by
4.0k points

1 Answer

6 votes
For finding length of character array char [ ] we use, a.length
Ex: char [ ] a = {‘a’, ‘b’};
r = a.length;
output: 2
For finding length of string object str, we use, str.length ( );
Ex : String str = “My”;
int k = str.length ( );
output: 2
User Edst
by
5.5k points