Java - single line comment: //

in the case of single-line comments from start tags to the end of the line, each character is interpreted as a comment. these characters will not be evaluated.

//

Description

//
Used keywords: //
Data:
  • text -

Examples

Java

single line comment the possible of use:
x = 5 * y; // x = xy
// y = 123;
if (x > 0) // x == true
   x=5;

Java

Other pieces of example codes:
if (x>5)
  y = (float)x / 0xa;  // y = 1
if (x>10)
  y = (float)x / 0xa;   // y = 1
 // z = FF
//  x+1
// z=9
 // z=333
Languages: en hu cz sk