sprint() method is the same as print() method except that sprint() method prints the object in string format. Print method in UVM - VLSI Verify