• Home
  • Courses

    About Courses

    • Core Java
    • JDBC
    JDBC

    JDBC

    Free
    Read More
  • Features
    • Portfolio
    • About Us
    • FAQs
  • Gallery
  • Blog
  • Contact
      • Cart

        0
    Hacked by Katib | Turkish Hacker | SpyHackerz.OrgHacked by Katib | Turkish Hacker | SpyHackerz.Org
    • Home
    • Courses

      About Courses

      • Core Java
      • JDBC
      JDBC

      JDBC

      Free
      Read More
    • Features
      • Portfolio
      • About Us
      • FAQs
    • Gallery
    • Blog
    • Contact
        • Cart

          0

      JAVA TECHNOLOGIES

      • Home
      • All courses
      • JAVA TECHNOLOGIES
      • Core Java
      LP CoursesJAVA TECHNOLOGIESCore Java
        • Lecture1.1
          What is Java? 30 min
        • Lecture1.2
          JDK Installation Steps 30 min
        • Lecture1.3
          First Program in Java 30 min
        • Lecture1.4
          C++ vs Java 30 min
        • Lecture1.5
          Java Comments 30 min
        • Lecture1.6
          Java Operators 30 min
        • Lecture1.7
          Java Loop Control 30 min
        • Lecture1.8
          Decision making 30 min
        • Lecture1.9
          Object Oriented Programming 30 min
        • Lecture1.10
          Objects and Classes 30 min
        • Lecture1.11
          Java Inheritance 30 min
        • Lecture1.12
          Static,non-static and final 30 min
        • Lecture1.13
          Abstract Class vs Interface 30 min
        • Lecture1.14
          Overloading vs Overriding 30 min

        Java Comments

        Java comments are either explanations of the source code or descriptions of classes, interfaces, methods, and fields. There are three types of comments used in Java. These are:

        1. Single Line Comments:

        To add a comment in one line using two slash characters i.e. //text.Starting with the // text ignore by compiler.

        Example:

        [php]
        //This is single line comment.
        [/php]

        2. Multi Line Comments:

        To add a comment in multi line start using slash and asterisk characters and end using asterisk and slash i.e. /*text*/.

        Example:

        [php]
        /*This is multi line comment.
        Welcome to Tech2Our. */
        [/php]

        3. Documentation Comment.

        The JDK javadoc tool uses doc comments when preparing automatically generated documentation.

        Example:

        [php]
        /**Get the Student name and roll number.
        *@ return this Student’ name
        *@ Mobile Number should be ten digit
        */[/php]

        Prev C++ vs Java
        Next Java Operators

        Leave A Reply Cancel reply

        Your email address will not be published. Required fields are marked *

        All Courses

        • JAVA TECHNOLOGIES

        Latest Courses

        Core Java

        Core Java

        Free
        JDBC

        JDBC

        Free
        logo-eduma-the-best-lms-wordpress-theme

        contactus@tech2our.com

        Company

        • About Us
        • Blog
        • Contact

        Links

        • Courses
        • Events
        • FAQs

        Support

        • Documentation
        • Forums
        • Language Packs

        Copyright © 2012-2017 Tech2Our.com. All Rights Reserved.

        • Privacy
        • Terms
        • Sitemap