[Solved] Can we declare the reference variable as String for the char array? [closed]
No this is not valid how ever you can do following: String[] name=new String[]{“h”, “e”, “l”, “l”, “o”}; or String name=new String(new char[]{‘h’, ‘e’, ‘l’, ‘l’, ‘o’}); solved Can we declare the reference variable as String for the char array? [closed]