No, a String instance is processed implicitly by the compiler. Only String and Array classes have this property.
String greeting = "Hello world!";
char[] helloArray = { 'h', 'e', 'l', 'l', 'o', '.' };
Autoboxing allows you to implicitly create objects of primitive wrapper types, but this is also a special case handled by the compiler. You cannot create your own classes with this ability.
Boolean b = false;
Integer i = 0;
Double pi = 3.1416;
source
share