online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import java.io.FileOutputStream; import java.io.ObjectOutputStream; public class Main { public static void main(String[] args) { Student student = new Student(1, "Fatima Ali", 4.2); try (FileOutputStream fileOut = new FileOutputStream("student.dat"); ObjectOutputStream out = new ObjectOutputStream(fileOut)) { out.writeObject(student); System.out.println("Serialized student: " + student); } catch (Exception e) { System.err.println(e.getMessage()); } } }
import java.io.Serializable; class Student implements Serializable { private static final long serialVersionUID = 1L; private int id; private String name; private double gpa; public Student(int id, String name, double gpa) { this.id = id; this.name = name; this.gpa = gpa; } // getters and setters and toString public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public double getGpa() { return gpa; } public void setGpa(double gpa) { this.gpa = gpa; } @Override public String toString() { return "Student{id=" + id + ", name='" + name + "', gpa=" + gpa + "}"; } }
¬ísrStudentDgpaIidLnametLjava/lang/String;xp@ÌÌÌÌÌÍt Fatima Ali

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue