---
# System prepended metadata

title: 049 TestAssignOP.java

---

# 049 TestAssignOP.java
public class TestAssignOP {

public static void main(String[] args) {
    int num = 1;
    num += 2; //num=num+2   
    String s = "1";
    s += 2;  
    System.out.println(num);
    System.out.println(s);
}

}
