how to call a new constructor in java code example Example: java constructor class MyClass { public MyClass () { //constructor code } }