title: Error exists in the bytecode
body: <p>I have simply two class one is this every think look fine before run the program but it show errors as written below.</p>
  
  <pre><code>package com.ravisystem.day5;
  
  import java.util.Scanner;
  
  
  public class GetAndPrint {
  // public static void main(String[]args){
  
  Scanner console = new Scanner(System.in);
  Student stu = new Student();
  Teacher Tea = new Teacher();
  //student
  
  public void GetValueStudent() {
      System.out.println("Enter the name of student");
      stu.name = console.nextLine();
      System.out.println("Enter the address of student");
      stu.address = console.nextLine();
      System.out.println("Enter the grade of student");
      stu.grade = console.nextLine();
  }
  
  public void PrintValueStudent() {
      System.out.println("student name is " + stu.name + "\n"
              + "student address " + stu.address + "\n" + "student grade " + stu.grade);
  
  }
  
  //teacher
  public void GetValueTeacher() {
      System.out.println("Enter the name of Teacher");
      Tea.name = console.nextLine();
      System.out.println("Enter the address of teacher");
      Tea.address = console.nextLine();
      System.out.println("Enter the salary of teacher");
      Tea.salary = console.nextLine();
  }
  
  public void PrintValueTeacher() {
      System.out.println("Teacher name is" + Tea.name + "\n"
              + "Teacher address" + Tea.address + "\n" + "Teacher salary" + Tea.salary);
  }
  Collage Col = new Collage();
  //college
  
  public void GetValueCollege() {
      System.out.println("Enter the name of college");
      Col.name = console.nextLine();
      System.out.println("Enter the location of college");
      Col.location = console.nextLine();
      System.out.println("Enter the establishyear of college");
      Col.establishyear = console.nextLine();
  }
  
  public void PrintValueCollege() {
      System.out.println("the name of collage " + Col.name);
      System.out.println("the location of collage " + Col.location);
      System.out.println("the establishyear of collage " + Col.establishyear);
  }
  }
  </code></pre>
  
  <p><strong>another class i have is main method class</strong></p>
  
  <pre><code>package com.ravisystem.day5;
  
  
  public class ComRavisystemDay5 {
  
  
      public static void main(String[] args) {
  
      // scanner Console=new scanner(System.in)
  
      GetAndPrint gap = new GetAndPrint();
      gap.GetValueStudent();
      gap.PrintValueStudent();
      gap.GetValueTeacher();
      gap.PrintValueTeacher();
      gap.GetValueCollege();
      gap.PrintValueCollege();
  
  }
  }
  </code></pre>
  
  <p>It looks like everything's fine but show error like</p>
  
  <pre><code>  Exception in thread "main" java.lang.VerifyError: Constructor must call      super() or this() before return
   Exception Details:
    Location:
  com/ravisystem/day5/Teacher.&lt;init&gt;()V @0: return
   Reason:
  Error exists in the bytecode
   Bytecode:
  0000000: b1                                     
  
  at com.ravisystem.day5.GetAndPrint.&lt;init&gt;(GetAndPrint.java:19)
  at com.ravisystem.day5.ComRavisystemDay5.main(ComRavisystemDay5.java:22)
  </code></pre>
  
  <p>Java Result: 1</p>