online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
class Employee { int emp_no; String name; // department is static variable so it will allocate //memory only once at compile time static String department ="IT"; Employee(int e,String n) { emp_no = e; name = n; } void display () { System.out.println("emp_no " + emp_no + " department = " + department); } } public class Main { public static void main(String args[]) { Employee e1 = new Employee(111,"raj"); Employee e2 = new Employee(222,"aditya"); e1.display(); e2.display(); } }

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