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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:41:55+00:00 2026-06-12T19:41:55+00:00

This is a very general question and i’d like to apologize in advance for

  • 0

This is a very general question and i’d like to apologize in advance for the noob question BUT….

in java, well in general, is there a specific name for in line declarations, or is it simply called just that?

i’m referring to the method below for declaring objects:

panel.add(new JLabel("Hello World"));

as opposed to:

JLabel label = new JLabel("Hello World);
panel.add(label);

  • 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-12T19:41:56+00:00Added an answer on June 12, 2026 at 7:41 pm

    People seem to call it “anonymous object” or “unnamed object”. See also https://stackoverflow.com/a/5330408/659002

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a very general question but it's based on a specific problem. I've
This is a very general and noob question, but I am a noob with
There is a similar question to this but answer is very general, vague.( Detecting
I'd like to apologize if my question doesn't sound very much specific, but i
This is a very general question, but here goes: I'm trying to create a
This is a very general question that's not related to a specific language. I'm
I know this is a very general and vague question but I am curious
Although this is a very general question, here's my specific example so you can
I asked a related but very general question earlier (see especially this response ).
There's an old question that asks this very thing, but a lot has changed

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.