Huỳnh Hiền
New member
Can be replaced with Lambda?
Answer
Note the replacement of an anonymous class with lambda is possible only if the anonymous class has one method. If the anonymous class has more methods the substitution is not possible. From oracle documentation: The previous section, Anonymous Classes, shows you how to implement a base class without giving it a name.
Answer
Note the replacement of an anonymous class with lambda is possible only if the anonymous class has one method. If the anonymous class has more methods the substitution is not possible. From oracle documentation: The previous section, Anonymous Classes, shows you how to implement a base class without giving it a name.