What is the purpose of setting serveroutput in oracle? Could someone let me know what is the purpose of using set serveroutput on/off in oracle?

I ran the below query to see what it is doing. However I need to know much about serveroutput. Kindly help me

 set serveroutput on;
     select * from tab;
    select * from tab;
     select * from tab;
     set serveroutput off;
set serveroutput on executed in SQL Plus executes behind the scenes:

dbms_output.enable(buffer_size =&gt; NULL);


set serveroutput off executes:

dbms_output.disable;