Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C# or Java ? Which language should i learn ?

Name: Anonymous 2012-08-10 7:14

Hi guys, i want to learn an oriented-object language and i don't know which i must choose : Java or C# ?

I know some basics rules about programming, i have made many cli-programs in C and some for my calculator in Ti-Basic.

I think with Java i can, at long term, develop on Android systems and i think it's the future platform of programming but...

With C# and .NET maybe i can make native software for Windows and Windows Phone, and the future marketplace on Windows can be good. But maybe the Windows/Xbox family is on decline and near to the end ?

So i don't know which choose, if you can give me some advices, it will be great. Thank you.

PS : Sorry for my bad english language. I hope you will understand what i want to say.

Name: Anonymous 2012-08-11 15:56

>FEATURES C# HAS THAT JAVA DOES NOT
http://msdn.microsoft.com/en-us/library/s1ax56ch.aspx - Value types vs. reference types
http://msdn.microsoft.com/en-us/library/dd264739.aspx - Named and optional arguments
http://msdn.microsoft.com/en-us/library/8627sbea.aspx - Built-in events
http://msdn.microsoft.com/en-us/library/bb397687.aspx - Lambda expressions
http://msdn.microsoft.com/en-us/library/d5x73970.aspx - Value types allowed as generic parameters; generic constraints
http://msdn.microsoft.com/en-us/library/ee207183.aspx - Co/contravariance
http://msdn.microsoft.com/en-us/library/ms173171.aspx - Delegates
http://msdn.microsoft.com/en-us/library/9fkccyh4.aspx - Methods are not overridable by default
http://msdn.microsoft.com/en-us/library/e59b22c5.aspx - Better interop support with unmanaged code
http://msdn.microsoft.com/en-us/library/y31yhkeb.aspx - Pointers
http://msdn.microsoft.com/en-us/library/x9fsa0sw.aspx - Properties (getters/setters)
http://msdn.microsoft.com/en-us/library/8edha89s.aspx - Operator overloading
http://msdn.microsoft.com/en-us/library/hh156513.aspx - 'async' methods
http://msdn.microsoft.com/en-us/library/ms229005.aspx - More flexible exception throwing*

http://msdn.microsoft.com/en-us/library/5cyb68cy.aspx - Ability to allocate memory not managed by the GC
http://msdn.microsoft.com/en-us/library/system.io.aspx - Standard IO library that is not complicated and overly verbose

>FEATURES THAT JAVA HAS THAT C# DOES NOT
Local and anonymous inner classes

================================================================================

* adding 'throws' to a method in Java requires snowballing changes to all methods that make use of that method, which requires changes to those methods, etc...

*****Also, remember that C# is -not- a windows-only language. Using mono you can write C# code on linux or mac.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List