A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

String(byte asciiChars[], int startIndex, int len)

String Constructor: String(byte asciiChars[], int startIndex, int len)

String Constructor: String(byte asciiChars[], int startIndex, int len)

String Constructor: String(byte asciiChars[], int startIndex, int len)





/* Example of Simple String Object Creation class using String(byte asciiChars[], int startIndex, int len) constructor */
class HB3
{
  public static void main(String args[])
  {
   byte ascii[]={65,66,67,68,69,70};
   String H1=new String(ascii, 2, 3); 
   System.out.println(H1);
  }
}


 

Sample Output

LEARN TUTORIALS

.

.