Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

XConstructorWrong.java

Simple example showing what happens in calling virtual methods in Java constructors.

First published on December 19, 2007 java_subdolo_errore_1

Compile

$ javac -Xlint:all XConstructorWrong.java

Run

$ java XConstructorWrong

"Unexpected" output

null

About

What happens in calling virtual methods in Java constructors

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages