RUVIDEO
Поделитесь видео 🙏

#2.4 Naming Convention in Java

Camel Casing Rule.

Class, Interface - 1st letter Capital
Variable, method - 1st letter small
Constant - All Capital

When you combine 2 different words, the 1st letter of second word needs to be capital.

class, Interface are nouns
methods - verbs

We follow some specific standards to make your code look good and make it more efficient and readable.
To make your more readable, you need to follow some rules and one of them is known as Naming Convention.

Always use proper conventions for the name.
- We should not use x, y, as a variable when we are making software
- Always use a proper variable name such as sname for student, stockprice for the price of stock.
- We should use a proper class name like String, Integer, Student, Worker, Engineer
- Name of a class and an interface :- start from a capital letter
- For methods and variables :- first letter should be a small letter
- For constant :- all capital letters but for combining two words in a constant, we should use underscore(_) to join them

Types of Naming Convention:
- For the interface name like Runnable , Seizable interface. They should be in the adjective form.
- There are lots of interfaces that require 'able' at the end. But with some remote interfaces, there is no need to add able.
- The class name should be noun like Student, Person, HashMap
- Method name should be a verb like actionPerfomed, run, print, scan, read, write
- Variable should like variables like stockprice, bankdetails
- Constant looks like constant as MAX_PRICE, PI, DENSITY

Camel Casing Rule:
Java follows camel casing rule, whenever you combine two words then we need to have first letter of the second word be capital.
e.g., MyFirstJavaClass
In this, four letters are combined, and the first letter of each word is capital that makes it more readable.
- It is applicable everywhere except packages and constants.

- Use of underscore(_) between two words is known as Snake Casing.

Advantages:
- it makes the code more readable
- it helps in identifying between different things like interface, method, etc

In this video we will see :
- Naming Convention in Java
- Rules for Naming Convention
- Types of Naming Convention for different aspects
- Camel Casing
- Advantages of Naming Convention


Instagram : https://www.instagram.com/navinreddyofficial/
Linkedin : https://in.linkedin.com/in/navinreddy20
Discord : https://discord.gg/aXPF5hV7

More Learning :

Java - https://bit.ly/3xleOA2
Python :- https://bit.ly/3H0DYHx
Django :- https://bit.ly/3awMaD8
Spring Boot :- https://bit.ly/3aucCgB
Spring Framework :- https://bit.ly/3GRfxwe

Servlet & JSP :- https://bit.ly/3mh5CGz
Hibernate Tutorial :- https://bit.ly/3NWAKah
Rest API | Web Service Tutorial :- https://bit.ly/38RJCiy

Git :- https://bit.ly/3NUHB3V
JavaScript :- https://bit.ly/3mkcFys
Kotlin :- https://bit.ly/3GR2DOG

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «#2.4 Naming Convention in Java», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.