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 7950967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:25:26+00:00 2026-06-04T02:25:26+00:00

I want to know what does this means? public Settings() { this(null); } The

  • 0

I want to know what does this means?

public Settings() {
    this(null);
}

The above code is the constructor of a class “Settings”. What does this(null) means here?

  • 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-04T02:25:28+00:00Added an answer on June 4, 2026 at 2:25 am
    public Settings() {
        this(null); //this is calling the next constructor
    }
    public Settings(Object o) {
    //  this one
    }
    

    This is often used to pass default values so you can decide to use one constructor or another..

    public Person() {
        this("Name"); 
    }
    public Person(String name) {
        this(name,20)
    }
    public Person(String name, int age) {
        //...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know what does RETURN_VALUE mean! I'm stuck at this thing. How
I am having a simple code where i want to know when does onRestoreInstanceState
I want to know that does apple's Push Notification Server generate new device token
I just want to know how does the table resulting from readXML look like,
i have one domain link text i want to know that does google crawl
I want to know that how does form based authentication works in weblogic. My
I am learning C# 3.5 and I want to know what [STAThread] does in
Want to know what is the difference between ipv4 and ipv6 and how does
I want to know about the advantages and disadvantages of URL masking. Does it
Does anyone know how to use different provider for membership? Actually i want to

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.