Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | Videos | Photos | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Login Close
User Id:
Password:
 
Forgot Password
Forgot Username
Why Register
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
 Resources  
Close
 Our Network  
Close
Search :       Advanced Search »
Home » Java and .NET » Top 10 Reasons to Switch from Java to Visual C#

Top 10 Reasons to Switch from Java to Visual C#

This article details the major reasons for Java programmers to consider switching from the Java language to Visual C#.

Total page views :  14438
Total downloads : 
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
Powerful ASP.NET Hosting w/ NO Setup Fees. Click Here!
Become a Sponsor


Interviews

"Prepare to be assimilated.... Resistance is futile."
- Borg, "Q, Who?", Startrek: The Next Generation

Why should a Java developer switch to C#? Here are the major reasons in alphabetical order:

1. "C Style" memory access

Rather than forcing developers to write code to access application programming interfaces (APIs) in other languages in order to access specific memory locations (e.g. hardware-mapped memory), C# allows developers to use "C style" memory management and pointers when necessary. Of course, one of the major design goals of the Java language and other object-oriented languages is specifically to outlaw such access. A fact which Microsoft acknowledges by forcing the C# programmer to label such accesses with the unsafe keyword.

2. Extensions for component-oriented development

Visual C# provides developers with a powerful component-oriented development language that includes support for properties, indexers, delegates, inheritance, versioning, and attributes, without the need for esoteric or rigid naming patterns and companion classes.

3. Familiarity

Java developers will immediately find Visual C# to be familiar and comfortable. C# is like Java on steroids. There are some extra keywords; and, Visual C# supports some extra constructs. But, a Java coder can learn the C# language in a day or two. Learning the APIs is a different matter.

4. Interactive XML Web services

Visual C# allows developers to deploy and consume rich, interactive XML Web services that reduce development time by enabling software aggregation from any platform. Microsoft is famous for hiding the details from the developer: This is both good and bad. New developers may not actually know or understand what is going on under the hood. On the other hand, it does increase productivity. Of course, Java developers have a variety of IDEs such as Eclipse to choose from. All of which provide some degree of support for Web services.

5. Leverage the .NET Framework

Visual C# provides developers with access to the Microsoft .NET Framework--a robust, thread-safe library of collection classes, data access classes, networking functions, etc. Recently, however, various bridge software offer .NET access from Java programs as well as access to the rich Java libraries from .NET languages.

6. Object-based type system

Visual C# provides developers an object-based type system that eliminates the need for complex, verbose data marshalling code commonly required by Java applications.

7. Standards-based language

Visual C# provides developers with a standards-based language (ECMA) with all its advantages. This is a significant advantage over the Java language.

8. Target any device

Visual C# lets developers target desktop computers or a variety of handheld and wireless devices using identical tools and skills. True, but all the devices must be Windows based.

9. Visual Studio .NET IDE

Visual C# provides developers with the Visual Studio .NET integrated development environment (IDE) which includes support for task lists, property editors, Microsoft IntelliSense®, Forms designers, etc. For development on Windows platform, Visual Studio is king. However, Visual Studio lags Eclipse and other IDEs except in Microsoft-specific features.

10. XML comments

Visual C# allows developers to use eXtensible Markup Language (XML) Comments to provide useful and customizable source code documentation. Of course, so does Java although Microsoft does add its own twists to it.

Conclusion

A form of this top 10 list originated with Microsoft. But, because both Java software and Visual C# evolve competitively, non-Microsoft oriented features tend to be matched by each competitor in turn. There is no real reason to use Visual C# instead of Java in general; because, each has its own advantages and disadvantages which may or may not be important in specific situations. Unless you work in a Microsoft-only shop, the requirements of the project should dictate both the language and other software employed.

"Ducunt volentem fata, nolentem trahunt." - Seneca


Login to add your contents and source code to this article
 About the author
 
Will Wagers
Editor of C# Online.NET (wiki.CSharp-Online.NET), a wiki-based C# and .NET reference with articles, source code, and tutorials. There you can learn the C# language, research an API, delve into the .NET framework or the Common Language Runtime (CLR), or find a helpful C# code snippet. There is something there for C# programmers of all experience levels. In an earlier incarnation, Will was the Java Guide at About.com.
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Go.NET
Build custom interactive diagrams, network, workflow editors, flowcharts, or software design tools. Includes many predefined kinds of nodes, links, and basic shapes. Supports layers, scrolling, zooming, selection, drag-and-drop, clipboard, in-place editing, tooltips, grids, printing, overview window, palette. 100% implemented in C# as a managed .NET Control. Document/View/Tool architecture with many properties&events. Optional automatic layout.
Dundas Software
Dundas Chart for .NET is the most advanced .NET charting package available today.  With an extremely complete feature set, elegant architecture and easy implementation, Dundas Chart can quickly add advanced Charting functionality to enhance and transform ASP.NET and Windows Forms applications.  Whether you are implementing charting into internal projects, or building applications for clients, Dundas Chart offers advanced technology and advanced results to get the most out of data.
Clickatell's SMS Gateway
Clickatell's Developer Solutions allow you to SMS enable any website or application via a range of API's. Learn More about our API connections.
Free access to .NET Memory Management video
Everything you need to know about Garbage Collection, Temporary Objects, Fragmentation, Finalization and common causes of memory leaks in .NET. Watch the video here.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
 
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
 Post a Feedback, Comment, or Question about this article
Subject:  
Comment:  
Become a Sponsor
 Comments
Can't agree with all points by Ran On June 4, 2006

I am a long time Java developer who has just moved to .NET and C#. I must say that I do not agree with all of your points.

Although I do not have much experience with C#, I can name a few things that Java just do better, for example:

  • enums - in Java you have better control over your enums, which enables you to add methods, constructors and fields.
  • Javadoc - XML docs are nice but Javadoc just seem easier to use.
  • IDEs - you can't compete with the amazing FREE java IDEs that are available today and their power. I must say that IntelliJ and eclipse are better than Visual Studio.
  • Why do you say the C# is standard and Java is not? I didn't get this one...

I did find some great stuff in C# that can just make you smile:

  • The great @ symbol before strings that eliminates the escape characters
  • The #region and #endregion markers (how come no one thought of that before)
  • Great use of attributes (Java annotations) for all kind of things
  • partial classes!!!
  • and some more..

 Ran.

 

 

 

Reply | Email | Delete | Modify | 
Re: Can't agree with all points by Will On June 9, 2006

I agree that Visual Studio has some catching up to do; but, it will certainly get there eventually.

The reason claims are made about "standards" is that parts of the .NET Framework and C# Language Specification were submitted to ECMA and ISO. Java does have a standards process; but, it is in house, so to speak, with Sun retaining control. (Of course, neither sides claims are really as simple as that.)

 

Reply | Email | Delete | Modify | 
Re: Can't agree with all points by AYR On June 28, 2007
Hello Ran.. I'm agree with you, especially i don't like MSDN, i have to read long long word, and i can't not find out the answer i want, Java SDK Doc better than MSND..
Reply | Email | Delete | Modify | 
C# 's Future by Rajesh On October 14, 2006

Hi

I am a student of Computer Science who is ready to enter the world of IT industry.

I am doing MCA and at present I am in 5th Sem. I had got a job in a company to which I am going to join in January 2007. I started learning C# and I liked it very much. Actually I am very much impressed by Microsoft Technology's.

My question is that in future what is the scope of C# and what role C# is going to play in the world of IT and particularly in the development of applications. Also at present C# and .NET applications run only on Windows Platform , so how to run .NET applications on platforms other then Windows, is there any framework being built which will enable C# applications to run on other platforms too inorder to achieve complete platform independence?

 

Thank you

Reply | Email | Delete | Modify | 

 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Site Map  |  Suggest an Idea  |  Media Kit
Current Version: 5.2009.6.2
 © 1999 - 2010  Mindcracker LLC. All Rights Reserved