Introduction to Java Programming: Lesson 3 - Variables & Data Types

preview_player
Показать описание
This lesson in Java tutorial for beginners course helps you in understanding variables and data types in Java Programming

Like every other programming language, variables in Java help store data values

Some of the major highlights in this video are:

How to declare a variable in Java
The different types of variables
How to use variables in statements
Difference between float and double
Difference between int and long
memory usage of variable types

0:00 Brief Introduction
0:26 Bank Analogy
2:29 Coding in IntelliJ begins
3:50 Declaring variables for our bank account
6:06 Naming your variables
7:39 Using long for storing large whole numbers
9:34 Float vs double for decimal numbers
10:51 Table of primitive data types and their memory allocation

An examples of how variables may be used and manipulated for displaying information in an ATM machine

***********************************************************
LIKE, SHARE AND SUBSCRIBE !!!
Рекомендации по теме
Комментарии
Автор

It's more appropriate to use a String for storing a user's bank account number because an account number can start with a 0 and if it is stored as int, when displaying the value to a user, the system will remove the initial 0s. So 0013456 will be 13456. Pls take note of this. Thanks for watching

WakeupDev.
welcome to shbcf.ru