I was trying to assign a lambda to Object type:
Object f = ()->{};
And it gives me error saying:
The target type of thi
It's not possible. As per the error message Object is not a functional interface, that is an interface with a single public method so you need to use a reference type that is, e.g.
Object
Runnable r = () -> {};