You are upgrading a Java class to Kotlin. What should you use to replace the Java class's static fields?

Question:You are upgrading a Java class to Kotlin. What should you use to replace the Java class's static fields?

1.An anonymous object

2.A static property

3.A companion object

4.A backing field


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!