mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-10 03:54:48 +00:00
15 lines
255 B
Java
15 lines
255 B
Java
// Check whether "instanceof" initializes its class argument.
|
|
|
|
public class PR3731 {
|
|
static B b;
|
|
public static void main(String[] args) {
|
|
System.out.println(b instanceof B);
|
|
}
|
|
}
|
|
|
|
class B {
|
|
static {
|
|
System.out.println("Initialized");
|
|
}
|
|
}
|