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

  • Home
  • SEARCH
  • 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 7836735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:17:27+00:00 2026-06-02T14:17:27+00:00

Doubt about .net program execution flow for few year i am working as a

  • 0

Doubt about .net program execution flow

for few year i am working as a develop but i have lack of knowledge for how C# win or web apps run. when we run application from IDE then how compiler come into scene to compile our program and after then how program start….how CLR come into scene and how JIT come into scene. who take control over the entry point of program. who invoke program entry point so called static void Main() from outside like. how CLR involve to take the responsibility for executing the program & Who involve the CLR. how JIT involve and who involve the JIT. why the entry point is static void main() ?

lot of book help us to write code with C# but never talk about the program execution flow….how a .net program is running. when we click on any .net exe then how exe is getting run. so i have some doubt….if possible then please discuss the above issue in detail or point me towards right article.

Doubt about OOPS

1) i saw a class which was private but constructor was public….why…what does it mean. is there any special purpose that is why class is designed like this.

2) i saw public class but it has three constructor one was private, one was static and last one was public……is there any special purpose to design a class in this way.

3) static class always have static constructor?

4) if a public class has normal constructor along with static constructor then what will be the purpose.

if possible then please discuss the above OOPS issue in details……..thanks

  • 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-02T14:17:32+00:00Added an answer on June 2, 2026 at 2:17 pm

    when we run application from IDE then how compiler come into scene to compile our program

    The IDE starts the compiler and passes it your program. The compiler is another program. It doesn’t need special invocation. You can do it yourself without an IDE by just calling csc.exe directly.

    and after then how program start….how CLR come into scene and how JIT come into scene. who take control over the entry point of program. who invoke program entry point so called static void Main() from outside like. how CLR involve to take the responsibility for executing the program & Who involve the CLR. how JIT involve and who involve the JIT.

    The JIT is the dynamic IL-to-native compiler. It’s what translates the IL that .NET languages are compiled into so that the programs can actually run.

    The CLR is pretty much another world for the JIT in the way you’re using it. I’m not going to go into detail here, but you can find out more on MSDN.

    why the entry point is static void main() ?

    Convention. Why is the language called C#?

    i saw a class which was private but constructor was public….why…what does it mean. is there any special purpose that is why class is designed like this.

    It’s so that the private class can be instantiated from the outer class. For example:

    public class A {
        private something = new B();
    
        private class B {
            public B() {
                // ...
            }
        }
    }
    

    If the constructor weren’t public, the private class could not be instantiated by the outer class.

    i saw public class but it has three constructor one was private, one was static and last one was public……is there any special purpose to design a class in this way.

    Sure. They all do different things. It’s not so unusual.

    static class always have static constructor?

    No. Static constructors are actually very rare. Of course, a static class cannot have a normal constructor.

    if a public class has normal constructor along with static constructor then what will be the purpose.

    The normal constructor is called to initialize an object. The static constructor is called the first time the class is used. Just because a class has both doesn’t make it special, you could use that functionality for just about anything.

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

Sidebar

Related Questions

I have a doubt about orkut's new URL Writing method. Earlier the home page
I have little doubt about string reading in C. string reading functions like gets,
I am having a doubt about the working of the HTTP protocol. We know
I am beginner so have some doubt about Adobe AIR. How do I install
I have a small architecture doubt about organizing code in separate functional units (most
I'm in a bit of a doubt about this subject. Situation: I have conducted
I have a few doubts about this robots file. User-agent: * Disallow: /administrator/ Disallow:
I have a few questions about endian-ness that are related enough that I warrant
I have a server-side project which must be developed on .Net platform, but I
I have a doubt about if that approach is possible, lets say you want

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.