Will this code run if the class has no constructor?

Yes, because it's using the default constructorIt can't run without a constructor

This code will run because it's using the default constructor.