Sign up for a consultation:
telegram - @alexnikiforovcom
mail - nikiforov.san.sanich@gmail.com
I can help you with creating a training plan, answer questions about Java, do a code review, help with a PET project or solve educational problems.
In this detailed analysis of primitive data types, I have collected all the basic information that is necessary to understand how primitive data types are structured, to understand and not memorize their sizes and ranges, which is necessary for confidence in interviews.
This is how I would like to have been explained the topic of primitive data types when I started learning Java.
To form a general picture, in this video I consider wrapper classes, BigInteger and BigDecimal classes, which are often used instead of primitive data types.
If you are already familiar with some of the topics in this video, skip them using the timecodes:
00:00 - Introduction, overview of the video content
03:18 - Introduction to all the primitive data types in Java
04:09 - What is a literal, introduction to the literals used
--------------------------------------------
Literals, size and ranges:
05:04 - byte data type
05:35 - short data type
06:07 - char data type
08:03 - int data type
08:29 - long data type
09:16 - float data type
10:04 - double data type
10:44 - boolean data type
----------------------------------------------
12:31 - brief overview of Wrapper Classes and BigInteger classes and BigDecimal
14:49 - Should I use byte, short instead of int and float instead of double
17:56 - Primitive data types and wrapper classes - when to use what
------
How integer data is encoded in binary:
20:07 - What is a bit and a byte
21:55 - the primitive byte type as a binary number
22:41 - a power of two - the number of possible combinations
26:17 - how to write 1, 2, 255 as a binary number
28:00 - the range of the byte type
28:13 - how to write positive and negative values of the byte type to a byte
28:54 - primitive type overflow
34:43 - how negative numbers work
41:39 - how to print ranges of primitive data types
44:35 - how fractional numbers work
49:00 - conclusion
Useful links:
1. https://docs.oracle.com/javase/specs/... - description of literals in the Java specification
2. https://stackoverflow.com/questions/1... - is it worth using byte and short instead of int, float instead of double
3. https://ru.wikipedia.org/wiki/%D0%AD%... - scientific notation of numbers
4. https://www.h-schmidt.net/FloatConver... - converter of fractional numbers to binary numbers
5. https://docs.oracle.com/javase/specs/... - section of the Java specification about fractional numbers
In questa pagina del sito puoi guardare il video online Detailed analysis of primitive data types in Java - understand how primitives are structured della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Nikiforov Java 23 ottobre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 7,179 volte e gli è piaciuto 319 spettatori. Buona visione!