简体   繁体   中英

Converting private class from Kotlin to Java via bytecode

When the Kotlin code is compiled into Java byte code what happens with private class. I ask it, because private classes are absent in Java.

When the Kotlin code is compiled into Java byte code modificators private , protected and public is saved. But There are two exceptions, internal turns into public , because modificator internal is absent in java. And modificator private with class turns into default .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM