title: Exception in thread "main" java.lang.Error: Unresolved compilation problem:at Datatypes.main(Datatypes.java:4)
body: <pre><code>package corejava;
  
  public class Datatypes {
      public static void main(String[] args) {
  
          //byte
          byte num1 = 100;
          System.out.println(num1);
          
          //short
          short num2 = 100;
          System.out.println(num2);
          
          
          //int
          int num3 = 15000;
          System.out.println(num3);
          
          
          //long
          long num4 = 5555555555L;
          System.out.println(num4);
          
          
          //float
          float num5 = 15.254f;
          System.out.println(num5);
          
          
          //double
          double num6 = 15.28484;
          System.out.println(num6);
          
          
          //char
          char ch = 'A';
          System.out.println(ch);
          
          
          //String
          String str = &quot;SG Testing Institute&quot;;
          System.out.println(str);
      }
  }
  </code></pre>
  <p>ERROR:
  Exception in thread &quot;main&quot; java.lang.Error: Unresolved compilation problem:</p>
  <p>at Datatypes.main(Datatypes.java:4)</p>