how to use assignment operator with classes instead of new() Like wrapper class
Integer i = 3;
newClass c = 3; // didn't work
It's not the "equal operator," it's the assignment operator.
No, you can't do that. You must use
new (or reflection).
Java doesn't have operator overloading. (The reason you can do
Integer i = 3; is because autoboxing of primitives is built into the language, not because the
Integer class does something with overloading.)