I have a class like this:
private static class Num { private int val; public Num(int val) { this.val = val; } }
Is it
No. Java does not support operator overloading (for user-defined classes).