Famous Quotes & Sayings

C# Args Quotes & Sayings

Enjoy reading and share 1 famous quotes about C# Args with everyone.

Share on Facebook Share on Twitter Share on Google+ Pinterest Share on Linkedin

Top C# Args Quotes

C# Args Quotes By Martin Odersky

Inheriting from Application is shorter than writing an explicit main method, but it also has some shortcomings. First, you can't use this trait if you need to access command-line arguments, because the args array isn't available. For example, because the Summer application uses command-line arguments, it must be written with an explicit main method, as shown in Listing 4.3. Second, because of some restrictions in the JVM threading model, you need an explicit main method if your program is multi-threaded. Finally, some implementations of the JVM do not optimize the initialization code of an object which is executed by the Application trait. So you should inherit from Application only when your program is relatively simple and single-threaded. — Martin Odersky