Theoretical Paper
- Computer Organization
- Data Structure
- Digital Electronics
- Object Oriented Programming
- Discrete Mathematics
- Graph Theory
- Operating Systems
- Software Engineering
- Computer Graphics
- Database Management System
- Operation Research
- Computer Networking
- Image Processing
- Internet Technologies
- Micro Processor
- E-Commerce & ERP
- Dart Programming
- Flutter Tutorial
- Numerical Methods Tutorials
- Flutter Tutorials
- Kotlin Tutorial
Practical Paper
Industrial Training
Kotlin Comment
Comments are the statements that are used for documentation purpose. Comments are ignored by compiler so that don't execute. We can also used it for providing information about the line of code. There are two types of comments in Kotlin.
- Single line comment.
- Multi line comment.
Single line comment
Single line comment is used for commenting single line of statement. It is done by using '//' (double slash). For example:
fun main(args: Array< String>) { // this statement used for print println("Hello World!") } fun main(args: Array< String>) { // this statement used for print println("Hello World!") }
Output
Hello World!
Multi line comment
Multi line comment is used for commenting multiple line of statement. It is done by using /* */ (start with slash strict and end with star slash). For example:
fun main(args: Array< String>) { /* this statement is used for print */ println("Hello World!") } fun main(args: Array< String>) { /* this statement is used for print */ println("Hello World!") }
Output
Hello World!