In this video I will explore what is the difference between java and kotlin. This is a short video and I have not gone in detail differences, this are some high level differences.
Пікірлер: 3
@androidboss3 ай бұрын
and function ko pass kr sakte ho java me bhi Define runnable in method constructor by doing this you can pass
@shivaburade2 ай бұрын
Oh let me check, Thanks !
@androidboss2 ай бұрын
@@shivaburade above is to send and to receive and run you can simply see public class testActivity { //how to send see below public exampleMethod (){}; test(this::exampleMethod); } public void test(Runnable methodObj){ methodObj.run(); //run or exectue received method }