str1=new String(data,0,data.Length()) why the zero is used in the string function please explain me the what this line says???
skbluecollars
0
Newbie Poster
Recommended Answers
Jump to PostJust read the API documentation for the String class - it's all explained there
http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#String%28byte[],%20int,%20int%29
All 3 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
jalpesh_007
-3
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.