What will be the output of the following program?
public class Opticals {
public static void main(String[] args) {
System.out.print("Output");
new Opticals().doSomething();
}
public void doSomething() {
int i = 5;
Thread t = new Thread(new Runnable() {
public void run() {
for (int j = 0; j <= i; j++) {
System.out.print("~" + j);
}
}
});
t.start();
}
}