Please tell me, is there any difference (in terms of Java) in this examples:
object DefaultValues { val FILES_TO_DOWNLOAD = 100 }and
class DefaultValues { companion object { val FILES_TO_DOWNLOAD = 100 } }Without class or object wrapper:
const val DEFAULT_FILES_TO_DOWNLOAD = 100and
val DEFAULT_FILES_TO_DOWNLOAD = 100
What is the true way to define?:
public static final int FILES_TO_DOWNLOAD = 100