It depends on the project requirements! The chances of security breaches are quite higher in Java, and that could be one reason why ASP.Net is better than Java.