Skip to content

C# vs Java: side-by-side C# programs on net10.0 with the matching Java 25 listings - #2258

Open
vladimir-pecanac-main wants to merge 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/125673-csharp-vs-java
Open

vladimir-pecanac-main wants to merge 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/125673-csharp-vs-java

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Adds csharp-intermediate-topics/CSharpVsJava, a new folder for the new article "C# vs Java: Which One Should You Pick?".

Small C# programs on net10.0, one per comparison in the article (generics, async and threads, collections and memory, records and pattern matching, nullability), run with dotnet run -- <name>. The java/ folder holds the matching Java 25 listings the article shows side by side; CI does not compile them, and the README says how to run them with a JDK (java Example.java).

The article is not published yet. This PR stays open until the article goes live.

…g Java 25 programs

One console app (CSharpVsJava.sln, classic .sln) runs each C# demo by name: generics, memory, concurrency, linq, shapes, nulls, nulls-unchecked, everyday. The java/ folder holds the seven single-file Java programs the article runs with JDK 25; CI builds only the .sln, so they are documentation for the reader (see README.md).
Same classic .sln template (dotnet new sln --format sln); only the generated project GUID changes. The project file regenerated identically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant