$ ./guess_the_languageProgramming Languages
Programming Languages · hard · #615

Which programming language is this?

public static class StringExtensions
{
    public static bool IsBlank(this string s) => string.IsNullOrWhiteSpace(s);
}

public class Downloader
{
    public event Action<int>? ProgressChanged;
    protected void Report(int pct) => ProgressChanged?.Invoke(pct);
}

Answer: C#

A this string s extension-method parameter and an event Action<int>? field are C# features with no Java equivalent.
Play Programming Languages ▸