Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

360
Vistas
what is the different between Kotlin File/Class and Kotlin Script

i programming kotlin language to some weeks, and i always start with new File/Class, and I've noticed lately to kotlin Script in the menu and i ask now what's different between the Script and the File in kotlin

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

In a Kotlin source *.kt file, you can place top-level declarations, such as types and top-level functions and properties, but not code statements that are not nested into some declarations.

A Kotlin Script *.kts file, on contrary, contains code statements on the top level without any nesting. These statements are an equivalent of a main function. It is allowed to contain types, too, but with some limitations similar to those placed on nested type declarations.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda