1 / 10

.Net vs. Java

.Net vs. Java. And why .Net is better. Hello World in Java. Hello World in C#. Both platforms have rich class libraries If you think it’s common, it’s probably in been done for you. .Net has fewer collections .Net List<T> == Java ArrayList<T> == Vector<T>

clarissa
Download Presentation

.Net vs. Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. .Net vs. Java And why .Net is better

  2. Hello World in Java

  3. Hello World in C#

  4. Both platforms have rich class libraries • If you think it’s common, it’s probably in been done for you. • .Net has fewer collections • .Net List<T> == Java ArrayList<T> == Vector<T> • Dictionaries are awesome, abuse them whenever you can Class Libraries

  5. GUI Development in Java

  6. GUI Development in C#

  7. Java: Thing[] foo; for(Thing bar : foo){… • C# Thing[] foo; foreach(Thing bar in foo){… For Each Loops

  8. Given int myThing; • Java has getters and setters (getThing(), setThing()) • Used like methods, because they are • .Net has properties • Used like variables, but still encapsulated Properties

  9. Java has anonymous classes galore • .Net has delegates (type safe function pointers) Events

  10. Attributes are cool • .Net has more flexibility to do dirty things (overloading operators, hiding base methods, etc.) Other differences

More Related