ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

9. Selenium Tutorial - II. Java for Selenium - 7. Comments in Java

Comments in Java

Core Java Tutorial for Beginners

Java Code Example

Java comment syntax

Java documentation comments

Java for Selenium

Java fundamentals

Java multi line comments

Java Program Example

Java single comments

Java Syntax

Java Training Video

Sample Java program

Writing comments in Java

Автор: G C Reddy Software Testing

Загружено: 2021-05-11

Просмотров: 515

Описание: https://www.gcreddy.com/2021/05/comme...
Comments in Java, writing comments in Java programs, Java single line comments, Java multi-line comments, and Java documentation comments.

1. Purpose of Comments

The Java comments are the statements that are not executed by the compiler and interpreter.

The comments can be used to provide information or explanation about the variable, method, class, or any statement.

The comments can be used to hide program code.

Note: The primary purpose of comments is to make the code understandable and the secondary purpose of comments is to make the code prevent execution.

2. Comments Syntax in Java

In Java there are three types of comments:

a. Single – line comments.
b. Multiline comments.
c. Documentation comments.

a. Use // for Single line comment

b. Use /*………….
…………………
…………………
………………*/ for Multiple line comment

Or

c. Documentation Comments

This type of comments are used generally when writing code for a project/software package since it helps to generate a documentation page for reference.

Syntax:

/**Comment start
.............
..............
*
*comment ends*/

4. Usage of Comments in Test Automation

a. To Write Test case header

b. To Write Method header

c. To Explain Complex Logic

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
9. Selenium Tutorial - II. Java for Selenium - 7. Comments in Java

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]