Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8677771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:32:56+00:00 2026-06-12T20:32:56+00:00

Many a time I have got an exception saying the default constructor’s implementation is

  • 0

Many a time I have got an exception saying “the default constructor’s implementation is missing”. And many a times a parameterized constructor’s definition alone does everything. I want to know under which conditions this happens.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:32:57+00:00Added an answer on June 12, 2026 at 8:32 pm

    The compiler doesn’t ever enforce the existence of a default constructor. You can have any kind of constructor as you wish.

    For some libraries or frameworks it might be necessary for a class to have a default constructor, but that is not enforced by the compiler.

    The problem you might be seeing is if you have a class with a custom constructor and you don’t have an implicit super() call in your constructor body. In that case the compiler will introduce a call to the super classes default constructor. If the super class doesn’t have a default constructor then your class will fail to compile.

    public class MyClass extends ClassWithNoDefaultConstructor
        public MyClass() {
            super(); //this call will be added by the compiler if you don't have any super call here
            // if the super class has no default constructor the above line will not compile
            // and removing it won't help either because the compiler will add that call
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this dilemma many times - and I would like one time and
I have seen many time that far pointers are used to work for TSR.
For example I have an app that counts how many time Camera button was
I would like to call JavaScript function many time . I have tried like
I have an MDI parent form that creates many MDI children at run time.
While there are many guides for Browser Helper Objects, i have a hard time
I have a asp.net page with .net controls. For a long time, many years,
Idea: I want to make smth like real time electronic blackboard. Many users have
Many times i run time consuming PHP scripts that echo status updates like 'batch
How many instances of DataNucleus' JDO implementation can run at the same time in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.