What programming language is this code written in? Is it Python, C++, Java, or Go?

public class Foo {
    public static void main(String[] args) {
        for(int i = 1; i <= 10; ++i) {
            System.out.printf("Hello %d", i);
        }
    }
}
system
is code main koun si programing bhashaa likhi gai he?kya yah paythan, si ++, java, yaa go he?

saarvajanik varg phu {
    saarvajanik sthitik shunya main (String [] args) {
        for (int i = 1; i <= 10; ++ i) {
            System.out.printf ("hello %d", i);
        }
    }
}
user
java
assistant
<|system|>
</s>
<|user|>
is code main koun si programing bhashaa likhi gai he?kya yah paythan, si ++, java, yaa go he?

saarvajanik varg phu {
    saarvajanik sthitik shunya main (String [] args) {
        for (int i = 1; i <= 10; ++ i) {
            System.out.printf ("hello %d", i);
        }
    }
}</s>
<|assistant|>
java</s>
