#45 Naming Convention in Java

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

In this video we will learn:
- Naming Convention Rules in Java
- Camel casing in Java
- What is Sanke casing?
- Advantages of naming convention

#1
Naming Convention Rules:-
A naming convention is a rule to follow as you decide what to name your identifiers such as class, package, variable, constant, method, etc.
- A class name should start with a capital letter.
e.g., public class Calc
- Variable names and methods start from a small letter
e.g., marks, show()
- Interface also starts with capital letters.
e.g., Runnable
- Constants have all letters capitalized of a word.
e.g., PIE, BRAND
- Packages contains lowercase letters. Multiple words can be joined by using the dot(.).

#2
Camel Casing:- We combine words as the first letter of every word should be in uppercase.
e.g., HelloWorld, MyFirstClass
- Mostly Java developers work on camel casing.

Snake Casing:- We combine different words using an underscore (_) in between them.
e.g., Hello_world, my_first_class

#3
Advantages of the naming convention:-
- These conventions make the code more readable.
- It helps us to distinguish between different things.

More Learning :

Donation:
PayPal Id : navinreddy20
Рекомендации по теме
Комментарии
Автор

With classes, we use the Pascal case naming convention.
With variables, we use the Camel case naming convention.
With constant variables, we use the Screaming snake case naming convention.

Headcator
Автор

Sir you're teching...video are verry_excelllent...love you sir❤..

saiyadsakib
Автор

Class - upper case
Method or variable - lower case

Keywords - lower case

Lyricmedia