Before and after the main

Hi Guys,

While going to different outlets to practice Java, I see there are some methods that are added before the main and some added after. What is the difference? Does it make a difference?

Thanks