title: Is it necessary to create a Java class everytime?
body: <p>I am starting to learn the Java programming language and I am a little confused.</p>
  
  <p>I would like to create a simple program like adding two numbers or calculate the sum of n numbers. I can do this in C or Python easily, but in Java, I have to create a class for my program and then create a main class and call my program from it.</p>
  
  <p>I use both Netbeans and IntelliJ.</p>
  
  <p>Can I just create the program directly the way I do it in other languages? I mean is the concept of a class necessary in Java?</p>