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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:48:42+00:00 2026-06-13T19:48:42+00:00

What happens at runtime when number of namespaces are used in the program? Are

  • 0

What happens at runtime when number of namespaces are used in the program? Are the classes from the namespaces loaded entirely or the class used in program get loaded? What if there are unused namespaces present in the program?

  • 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-13T19:48:44+00:00Added an answer on June 13, 2026 at 7:48 pm

    Namespaces are really more of a compile time construct then a runtime construct. Putting classes into a namespace primarily only affects the name of the class. The “fully qualified name” of any class is actually its namespace hierarchy(separated by periods .) followed by the actual class name. You con’t “load” a namespace at runtime, the entire concept doesn’t exist.

    When you compile a program, if you compile it to a library (.dll) you can add a reference to that .dll, in which case all of the classes in that dll are “accessibe” in your program. As for whether they’ll be loaded, it’s certainly possible for them to be loaded, but chances are due to lazy initialization unused classes won’t have a significant impact on performance.

    When you add a using statement to the top of a file for a namespace, it doesn’t “load” that namespace. It will be used by the compiler to resolve all “unqualified” class names to “fully qualified” class names (at compile time). If you used just fully qualified class names in the first place you wouldn’t need any usings (but that really clutters up your code, so you should add them anyway).

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

Sidebar

Related Questions

Some overflow runtime error happens when my C++ program is trying to write some
What happens is, I am fetching the data from web service. Simultaneously 6 async
What happens if I call startUpdatingLocation while startMonitoringSignificantLocationChanges is running? Does significantLocationChange monitoring get
EDIT I added this line: getActivity().registerReceiver(new BroadcastReceiver(){...}, new IntentFilter(SENT)); There is now a runtime
Assume we have a trivial Java program that consists of just one class: public
Short version: Can a COM class modify its own virtual table entries at runtime?
Is there any way in Java to get the compile time type of a
My activity keeps a certain number of references to preview images from the camera
So suppose I have a number called num , if some condition A happens,
I have the following function: //Function to get random number public static int RandomNumber(int

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.