Is C# Better than Java?

preview_player
Показать описание
In this video we compare two excellent software technologies, C# and Java.

🕐 Video Time Indexes
-------------------------------------
00:00:00 - Introduction
00:00:44 - A brief Overview of Java
00:03:03 - A brief Overview of C#
00:06:48 - The similarities between C# and Java
00:09:59 - The differences between C# and Java
00:13:57 - Who wins C# or Java?
00:14:28 - Conclusion

Blazor Courses
------------------------
Build a Shopping Cart Application using Blazor WASM and Web API

Build a Sales Management Application using Blazor Server and Syncfusion Compoments

React Courses
------------------------
Project Based React Course for Beginners

Ranking App using React with .NET (C#)

.NET 8 Playlist - Blazor's new Featurs and Enhancements

Is Blazor Better than React Video?

Support the Channel 👍
------------------------------------
Buy me a Coffee ☕️

PayPal

🪙 BitCoin
12JZYMiRq5YRDN5R5zuyYt7jMN8eTpkgns

Please follow me on Twitter @GavinLonDigital

Links Referenced in this video
-------------------------------------------------
Nuget Packages

.NET Assemblies

CIL Code - Common Intermediate Code

AOT - Ahead-of-Time Compilation

Full Playlist - C# for Beginners Course
------------------------------------------------------------

Free Courses and Educational Videos - Gavin Lon
-------------------------------------------------------------------------------
Blazor (Webassembly) Shopping Cart Application full playlist

Full playlist - Let's Build an ASP .NET Core MVC Web Application on .Net 5

Full playlist - Advanced C# Course

Full playlist - C# for Beginners Course

Blazor Server App on .NET 6 Course - FreeCodeCamp

🎶All Music in this Video was Created by Gavin Lon
Рекомендации по теме
Комментарии
Автор

I have just started programming in c#, It was very easy to learn and I could put my logic into code effortlessly. So c# is a better choice for me, this video helped me understand more about c#, great work 💯

battletremor
Автор

The differences are the reason I stick with C#. Though, I started with Java but more mouth watering features of C# made me stick to it.
C# wins almost everywhere if objectively compared.

Aweklin
Автор

My Experience, we once had an airtime vending project built with Java and deployed on wildfly, , @ peak demand periods it would suddenly freeze daily, when we moved over to another one built with C#, i took time to note we only restarted that application twice in a whole year, i have a great Java Dev as a friend too, but Microsoft with DotnetCore and now Blazor will always be my preferred choice and serious wide margins, Thanks for the detailed post, great work.

femidaniel
Автор

I programmed in Java for about 10 years, but I never fully got it. Java and all its tools seemed clumsy and disjoint. After retiring, I taught myself C# and Python, and I much prefer them. I cut my teeth on C and C++, so it is a natural choice.

MegaJohn
Автор

My personal opinion is that C# is better, and it should be ranked after Python and JavaScript. However, I don't know why I always see Java ranked before C#?

hammeedabdo.
Автор

C# has nice language features when compare to Java, but C#/.NET mutliplatform target came bit late when compare Java/JVM. Now unified .NET is big move and attract more devs.

Anbu_Sampath
Автор

I have a question, and it's a very strange one. First of all, I also prefer C#, and my question is, why do all YouTubers say that Python is the best beginner programming language when it doesn't even have data types? I mean, we programmers always tell beginners that they need to learn data types, etc., so why does everyone suddenly say Python? In this regard, I find the best and absolute best programming languages for beginners to be Pascal, C#, or Java.

I mean:
Strict data types: Unlike some other languages like C++ or Java, Python has dynamic typing, meaning variables don't need to be explicitly declared and their type can change during runtime. This can confuse beginners who are accustomed to strict data types.

Whitespace sensitivity: Python uses indentation (whitespace) for structuring code instead of curly braces like in other languages. Beginners might struggle with using the correct indentation, leading to syntax errors.

Complexity in larger projects: While Python is well-suited for small to medium-sized projects, it may hit its limits with larger projects, especially when it comes to performance optimization. Beginners might struggle with understanding scalability and performance optimization.

Inheritance and OOP concepts: Although Python is object-oriented, beginners might find it difficult to grasp concepts like inheritance, polymorphism, and encapsulation and apply them.

Lack of explicit error messages: Python might not be as strict in terms of error messages as some other languages. Beginners might struggle to identify and debug errors in the code if Python doesn't explicitly point them out.


Is Python overrated?. I learned programming with Pascal in 2016, and then we learned C#, and I never had any problems. The concepts in Pascal with begin and end, or repeat until, procedures, or functions taught me the understanding of programming.

iekie
Автор

Java was my 2nd first programming language. Used it quite a bit until I started to hate it, then I switched to JavaScript with mostly Angular. Later on, I picked up on how some startups are combining Angular and .NET to create performant solutions. So, I embarked on a journey to learn C# language basics early this year. One thing I'm certain of is I'm staying with C# and .NET. Definitely it's better than Java.

tanakamichael-dpnb
Автор

C# wins over java. Great video on the planet to showcase the pros and cons of c# and java. Kudos to your hard work and efforts.

vijayansivaraman
Автор

I believe one aspect is missing from the summary. It is the fact that .net core was created containers and Internet in mind. When it comes to containerization it just kills Java hands-down. Look at the size and the performance of a Java based container that tells everything.

LE
Автор

Whatever language I use, I always miss at least one feature that C# has

marcus
Автор

C# as a language is more flexible and we may say "better" than Java. But Java has a far better, bigger and open ecosystem and multiplatform support. With C# you are basically traped in a golden cage made and controlled by Microsoft, I know the latest versions of .NET framework (.Net core) has multiplatform support but it came very late AND the multiplatform support it's incomplete (no win forms for Linux for example) also the nature of .NET in the past and all the legacy applications have made that basically 95% of C# development is focused on windows. Nothing wrong with that, but if you are not interested in windows development (both server and desktop) real world C# development will mostly target Microsoft and azure and that's a limitation.

Mirage
Автор

I work in Java most days at work. It is an ok language. Libraries like spring boot help make it more palatable.
Then I go home and work on my own projects in C#.

So if I have the choice, I will choose C# for many of the reasons you listed.

paulpach
Автор

did you generate this video script with chatgpt 1.0

RedbeardyMcGee
Автор

Thanks
Can you make one about CSharp vs python ?

cissemy
Автор

Java is more careful about introducing new syntax than C#. C# may not be very attractive in the moment, but in the long run you get a more stable language in Java.
A good example is Java victual threads, it was carefully designed to make sure that functions are colorless, where c# is still stuck with colored functions and await/async. The trouble with having new syntax catering every new fad is that when it goes out of fashion you are left with language bloat. C++. is another example of language bloat going badly .

slr
Автор

C#. It's faster, and knowing only C# is enough to be a fullstack developer and also build both your mobile and desktop apps with it.

wakeelsaliu
Автор

It isn't 100% fair to say that the difference between Java and c# is that you can Write frontend in c#. In java you can do it as well. If you want to make such notion then you'd Rather have to compare These technologies instead of saying that Java lacks it

adikztv
Автор

Another great Video.
I used both in my career. C# long felt like the better Java. For the defense of Java one should keep in mind that Java is a bit older than C#, so Microsoft could improve C# and add stuff like properties. Since C# can now be used on Linux systems, the main advantage of Java vanished.

dirkschannel
Автор

Started with C++, then python and then Java. Left all of that behind once i started using typescript. Got a job in Vuejs saw i was dealing with many api fetches & changing the data for my use case once fetched, so i started learning back end. Tried typescript blah. Java was a mess for it. Golang was great but didn’t have enough stuff built in. Rust was fun but without a framework i couldn’t learn how to use lifetimes but polonius might fix that soon. Then i finally tried C# seriously with their ugly bracket placements 😂. I love it. Dotnet 8/C# 12 is like a typed typescript. It’s my favorite language. The brackets i use K&R code style meaning them brackets are with the signature on the same line 😜. I usually use a big O notation project to learn a language & hands down C# was flawless in creating such a project. inline object creation with new = { } is one of the many js/ts type coding i love C# for. Though Java & C# look alike from far away C# is a much bigger language & much much better to develop in and the cli is awesome 😎

jaymartinez