Java Comments in Hindi

Java Comments In Hindi – Single Multi-Line Comments

Java

Java Comments In HindiSingle & Multi-Line Comments in Hindi – Ham Is Post Mai Learn Karne Wale Hai Ki Java Comments And Types Of Java Comments And What is Java Comment |

Also Read – Java Syntax

Java Comments In Hindi

Java Comment Ek Java Code Hota Hai Jise Browser Ignore Karta Hai. Or Is Code Ko Webpage Mai Dikhaya Bhi Nhi Jata Hai |

Jo Content Java Comments Tag Ke Under Likha Jata Hai Ise Keval Browsers Or Developers Hi Dekh Sakte Hai Ye Comment End Users Ko Show Nhi Hota Hai |

What Is Comments in Hindi:- Comments Vah Part Hota Hai Jo Program Ke Bich Mai Likha To Jata Hai Par Vah Code Ke Rup Main Execute Nhi Hota Hai Yani Ki Ham Comments Ko Isliye Likhte Hai Taki Ham Bahut Year/Month Ke Bad Bhi Aapne Code Ko Comments Ke Rup Main Understand Kar Sake |

Yadi Aapne  HTML Full Course  And CSS Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

Java Comment Syntax in Hindi

Java Comments Ko // Ke Bad Mai Likha Jata Hai | Iska Example Aap Niche Dekh Sakte Hai |

//This is single line comment  

Types Of Comments In Java In Hindi

Java Mai 3 Types Ke Comments Ko Support Karta Hain |

  • Single Line Comment
  • Multiple Line Comment
  • Documentation Comment

Java Single Line Comment in Hindi

Single Line Comment Ka Matlab Hain Ki Ek Line Main Comments Likhna. And Single Line Comment Ko // Double Slash  Ke Duvara PHP Main Define Karte Hai.

Example:

public class Myclass{
  public static void main(String[] args){
    System.out.println("Hello World"); // print line cmd
  }
}

Aap Dekh Sakte Hai ki Hamne 3 Line Mai //print line cmd Comments Likhi Jo Ki Niche Diye Gaye Output Mai Run Nhi Hogi. Kyoki Ye Single Line Comments Hain |

Also Read – What is Java in Hindi

Output:

Hello World

Java Multi Line Comment in Hindi

Multiple Line Comment Ka Matlab Hain Ki Ham Comment Ko Multiple Line Main Likh Sakte Hai And Multiple Line Comment Ko Start /* And End */ Se Kiya Jata Hain.

Example:

public class Myclass{
  public static void main(String[] args){
/* 
This  
is  
multi line  
comment 
*/  
    System.out.println("Hello World"); 
  }
}

Aap Dekh Sakte Hai ki Hamne 3 Line Se Lekar 8 line Tak /* This is multi-line comment*/ Comments Likhi Jo Ki Niche Diye Gaye Output Mai Run Nhi Hogi. Kyoki Ye Multi-Line Comments Hain |

Output:

Hello World

Java Documentation Comment in Hindi

Documentation Comments Banane Ke Liye Documentation Comment Ka Istemal Kiya Jata Hain | Documentation API Banane Ke Liye Aapko javadoc Tool Ka Istemal Karne Ki Jarurat Hai |

Example:

/** 
This  
is  
documentation  
comment 
*/  

Friends Comments Ko Or Bhi Jyada Understand Karne Ke Liye Ham Aani Wali Sabhi Post Main Istemal Karne Wale Hai |

Aapne Kiya Learn Kiya ?

Is Article Mai Aapne Java Comments Ke Bare Mai Learn Kiya Hai Or Abhi Tak Keval Basic Par Focus Kiya Aage Ki Post Mai Ham Java Variable Ke Bare Mai Read Karne Wale Hai |

Yadi Aapne  HTML Full Course  And CSS Full Course And Python Full Course And PHP Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

Leave a Reply

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