Thursday, 12 June 2014

String()

public String()
Initializes a newly created object so that it represents an empty character sequence.

class StringConstructor1{
 public static void main(String args[]){
  String s1 = new String();
  
  System.out.println("s1 = " + s1);
 }
}

Output
s1 =



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment