Java full tutorial video in english language|Learn everythings from java|Programmingwithmosh
WELCOME TO THE TECHNICAL CHANNEL.LEARN ABOUT WEB PROGRAMMING,EARN MONEY ONLINE,WEB DEVELOPER.
I am software developer and so on.
e smallest building blocks in Java programs are methods (also called functions
in other programming languages). We combine related methods in classes, and
related classes in packages. This modularity in Java allows us to break down large
programs into smaller building blocks that are easier to understand and re-use.
5 Interesting Facts about Java
1. Java was developed by James Gosling in 1995 at Sun Microsystems (later
acquired by Oracle).
2. It was initially called Oak. Later it was renamed to Green and was finally
renamed to Java inspired by Java coffee.
3. Java has close to 9 million developers worldwide.
4. About 3 billion mobile phones run Java, as well as 125 million TV sets and
every Blu-Ray player.
5. According to indeed.com, the average salary of a Java developer is just over
$100,000 per year in the US.
Types
Variables
We use variables to temporarily store data in computer’s memory. In Java, the type
of a variable should be specified at the time of declaration.
In Java, we have two categories of types:
• Primitives: for storing simple values like numbers, strings and booleans.
• Reference Types: for storing complex objects like email messages.
Primitive Types
Declaring Variables
byte age = 30;
long viewsCount = 3_123_456L;
float price = 10.99F;
char letter = ‘A’;
boolean isEligible = true;
• In Java, we terminate statements with a semicolon.
Type Bytes Range
byte 1 [-128, 127]
short 2 [-32K, 32K]
int 4 [-2B, 2B]
long 8
float 4
double 8
char 2 A, B, C, …
boolean 1 true / false
• We enclose characters with single quotes and strings (series of characters) with
double quotes.
• The default integer type in Java is int. To represent a long value, we should add L
to it as a postfix.
• The default floating-point type in Java is double. To represent a float, we should
append F to it as a postfix.
Comments
We use comments to add notes to our code.
// This is a comment and it won’t get executed.
Reference Types
In Java we have 8 primitive types. All the other types are reference types. These
types don’t store the actual objects in memory. They store the reference (or the
address of) an object in memory.
To use reference types, we need to allocate memory using the new operator. The
memory gets automatically released when no longer used.
Date now = new Date();
Strings
Strings are reference types but we don’t need to use the new operator to allocate
memory to them. We can declare string variables like the primitives since we use
them a lot.
String name = “Mosh”;
Useful String Methods
The String class in Java provides a number of useful methods:
• startsWith(“a”)
• endsWith(“a”)
• length()
• indexOf(“a”)
• replace(“a”, “b”)
• toUpperCase()
• toLowerCase()
Strings are immutable, which means once we initialize them, their value cannot be
changed. All methods that modify a string (like toUpperCase) return a new string
object. The original string remains unaffected.
Escape Sequences
If you need to use a backslash or a double quotation mark in a string, you need to
prefix it with a backslash. This is called escaping.
Common escape sequences:
• \\
• \”
• \n (new line)
• \t (tab)
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Java full tutorial video in english language|Learn everythings from java|Programmingwithmosh», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.