three objects are created
static methods in java a static method can access only static data members but main() is a static method still it is accessing the instance...
Separate names with a comma.