Search code examples
c#javadatabaseuser-interfaceprogramming-languages

Should I Learn C# or Java?


I am a second year Computer Engineering student and I need to study in-depth GUI with database programming.

I am not completely new to it as I have made some mini-projects in C#...and Java... But now need to master the subject.

My Question is in which language is well equipped and demanding(market prospective) Java or C#?

Obviously I cannot do both of them and I know that most of the coding in Java and C# are the same.... but as far as GUI and Database programming is concerned there are some differences... Also some reference Text books will be of great help :-))


Solution

  • It depends on your target systems... I would say it is generally faster to develop in C# in Visual Studio than in Java. Also C# ties into Microsoft SQL Server very nicely. C# and .NET 4.0 offers you Windows Presentation Foundation (WPF) for building GUI's, which I find to be superior to Windows Forms or Java GUI's, although I haven't worked with Java in a couple of years and last time I built a Java GUI it was with Swing.

    There is a lot of support from Microsoft for C# and MS SQL Server, and you can do most things for free (as with Java). If you are targeting Windows systems, I would go with C#.

    EDIT: Also, LINQ-to-SQL is awesome, very intuitive way to access the database and get objects to work with. So another plus to C# from me.