Tangible Software Solutions

The Most Trusted Name in Source Code Conversion

Java Equivalent to C# Delegates

A C# 'delegate' corresponds to a Java 'functional' interface.

C#:

public delegate void FooDelegate();

Java:

@FunctionalInterface
public interface FooDelegate
{
    void invoke();
}

Just like a C# lambda implements a delegate, a Java lambda implements a functional interface.

If you need to convert from C# to Java and you are depending on the results being reliable and accurate, then you will want to have C# to Java Converter, the best C# to Java converter, at your fingertips.

Copyright © 1997 - 2017 Tangible Software Solutions Inc.