There are 5 ways:
1-> new operaotor
2-> Class.forName()
3-> Cloning
4-> Deserialization
5-> Class.newInstance()
Max
Sep 7th, 2011
All sorts of syntax sugar can also be named:
6. New String as a result of concatenation:
String varName = getClass().getName(); //to avoid compile-time optimization
String a = "Prefix" + varName;
...