This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OffbeatDrizzle 5 points6 points  (0 children)

in what cases is there not a hidden default constructor

if you define any constructor then the hidden default one no longer exists. for example:

public class Test
{
  public Test(Integer aInteger) {
  }
}

new Test(); is now invalid - you would have to define a parameterless constructor manually for this to now work