/dev/null what is the use of it?

when do you use the path /dev/null

To empty a file.

cat /dev/null > myfileToEmpty.txt

when you don't want to see errors:

find / -type f -name '*yogesh*' 2>/dev/null

read this for more details

Or to see errors only

make >/dev/null