我应该学习C#还是Java?

时间:2022-09-11 10:18:37

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

我是计算机工程专业的二年级学生,我需要用数据库编程学习深入的GUI。

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.

我并不是全新的,因为我在C#和Java中做了一些小项目...但现在需要掌握这个主题。

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

我的问题是哪种语言装备精良且要求(市场前景)Java或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 :-))

显然我不能同时做到这两点,我知道Java和C#中的大部分编码是相同的....但就GUI和数据库编程而言,存在一些差异......还有一些参考教科书将是很有帮助:-))

2 个解决方案

#1


4  

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.

这取决于你的目标系统......我想说在Visual Studio中用C#开发比用Java开发通常更快。 C#也很好地与Microsoft SQL Server联系在一起。 C#和.NET 4.0为您提供了用于构建GUI的Windows Presentation Foundation(WPF),我发现它优于Windows Forms或Java GUI,尽管我在几年内没有使用过Java,而且上次我构建了Java GUI是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#.

Microsoft为C#和MS SQL Server提供了大量支持,您可以免费完成大部分工作(与Java一样)。如果您的目标是Windows系统,我会使用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.

编辑:此外,LINQ-to-SQL是一种非常棒的,非常直观的方式来访问数据库并获取对象。所以C#的另一个加分来自我。

#2


3  

By "demanding" I think you mean to say "in demand".

通过“要求”,我认为你的意思是说“需求”。

Best thing to do is to look at the classified ads, see which kinds of companies are asking for java and which kinds are asking for C#, and then decide which of the two to emphasize based on your career goals and personal preferences.

最好的办法是查看分类广告,查看哪些公司要求提供Java以及哪些类型要求C#,然后根据您的职业目标和个人偏好决定强调哪两个。

#1


4  

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.

这取决于你的目标系统......我想说在Visual Studio中用C#开发比用Java开发通常更快。 C#也很好地与Microsoft SQL Server联系在一起。 C#和.NET 4.0为您提供了用于构建GUI的Windows Presentation Foundation(WPF),我发现它优于Windows Forms或Java GUI,尽管我在几年内没有使用过Java,而且上次我构建了Java GUI是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#.

Microsoft为C#和MS SQL Server提供了大量支持,您可以免费完成大部分工作(与Java一样)。如果您的目标是Windows系统,我会使用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.

编辑:此外,LINQ-to-SQL是一种非常棒的,非常直观的方式来访问数据库并获取对象。所以C#的另一个加分来自我。

#2


3  

By "demanding" I think you mean to say "in demand".

通过“要求”,我认为你的意思是说“需求”。

Best thing to do is to look at the classified ads, see which kinds of companies are asking for java and which kinds are asking for C#, and then decide which of the two to emphasize based on your career goals and personal preferences.

最好的办法是查看分类广告,查看哪些公司要求提供Java以及哪些类型要求C#,然后根据您的职业目标和个人偏好决定强调哪两个。