fork download
  1. class Ruim {
  2.  
  3. private final int sempreTres;
  4.  
  5. public Ruim() {
  6. mostra();
  7. sempreTres = 3;
  8. }
  9.  
  10. public void mostra() {
  11. System.out.println(sempreTres);
  12. }
  13.  
  14. public static void main(String[] args) {
  15. Ruim r = new Ruim();
  16. r.mostra();
  17. }
  18. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
0
3