Friday, 8 August 2014

Database Connection


Class.forName loads the driver particular database. through that DriverManager we get connection for our usages.

Thursday, 7 August 2014

Convert Char Array To String

public static void main(String args[]){
char[] helloArray = { 'h', 'e', 'l', 'l', 'o', '.'};
String helloString = new String(helloArray);
System.out.println( helloString );
}
}


Output : hello.