From the documentation > SObjectType Class I see that we can instantiate a new sObject from the SObjectType class
Could you tell me how does the code below create a new Account regarding the required fields
Account newAcc = (Account)Account.sObjectType.newSObject();
Are the required fields ignored or are they filled with some default values ?
newAcc
. When you try to insert that object by performing DML then necessary validations rules get fired and if any required field is missing, it will throw error.