Well, that's a hard choice buddy...
.NET is strong as hell, with ASP.NET it literally changed my view about web programming but under that framework C# is just your perfect next generation C++.
Java was nice too, but not as strong. Mainly, you will always reach limits that you won't find in .NET, as other members commented, Java framework is mainly the language alone. Unlike .NET -which is a full platform-.
Take this example : you are building a website and you chose ASP.NET's MVC as your methodology of development. LINQ is there embedded in the platform, along with actual C# embedding (just add @ even if it was inside an html view), things become connected, strong and easy to reach.
But try it with java : it's actually impossible unless you load your java code on a server, and communicate to it via javascript or php embedded in your html page. How to include a java code inside your html page ? thus, it will require a larger team to do what a single person can do easily under the .NET framework.
I didn't choose neither, and that because I like both.
.NET is strong as hell, with ASP.NET it literally changed my view about web programming but under that framework C# is just your perfect next generation C++.
Java was nice too, but not as strong. Mainly, you will always reach limits that you won't find in .NET, as other members commented, Java framework is mainly the language alone. Unlike .NET -which is a full platform-.
Take this example : you are building a website and you chose ASP.NET's MVC as your methodology of development. LINQ is there embedded in the platform, along with actual C# embedding (just add @ even if it was inside an html view), things become connected, strong and easy to reach.
But try it with java : it's actually impossible unless you load your java code on a server, and communicate to it via javascript or php embedded in your html page. How to include a java code inside your html page ? thus, it will require a larger team to do what a single person can do easily under the .NET framework.
I didn't choose neither, and that because I like both.