Comment style in Java


/ Published in: Java
Save to your folder(s)

Comment style in Java


Copy this code and paste it in your HTML
  1. /*
  2. This is comment in C style
  3. */
  4.  
  5. public class Comment {
  6. /**
  7. Documented comment place in this line
  8. **/
  9. public static void main(String args[]) {
  10. System.out.println("Hello World");
  11. // This is comment in C++ style
  12. }
  13. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.