[go: up one dir, main page]

Skip to content

What happens in calling virtual methods in Java constructors

Notifications You must be signed in to change notification settings

isghe/XConstructorWrong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages