Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

356
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda