Skip to content

Instantly share code, notes, and snippets.

@alina-yur
Created May 13, 2020 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alina-yur/a5038759baa421ed5101a201dbaf75bc to your computer and use it in GitHub Desktop.
Save alina-yur/a5038759baa421ed5101a201dbaf75bc to your computer and use it in GitHub Desktop.
class A {
static B b = new B();
}
class B {
static {
C.dosomething();
}
}
class C {
static long currentTime;
static {
currentTime=System.currentTimeMillis();
}
static void dosomething(){…}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment