If I do not connect uvm_analysis_port to uvm_analysis_imp and use uvm_analysis_port.write method. What should happen

In reply to Jinam Shah:

No. this.size() will be 0 because no connections have been made. An analysis port can have 0 or more connections.