#6 Data types in Java
Telusko
@teluskoAbout
Hey Aliens Welcome to Telusko! We create technical tutorials that take you from beginner to advanced level. You’ll find content on: Core Programming: Java (Beginner to Advanced), Python, JavaScript Frameworks & Tools: Spring Framework, Hibernate, Blockchain, Spring AI, AI Engineering Computer Science Essentials: Data Structures, Networking, System Design, and more Trending Tech: Cloud, Microservices, and beyond Alongside technical tutorials, we also share motivational videos and host sessions with leading industry experts. We don’t just stop at free tutorials—we also provide paid courses (live and recorded) and corporate training to help professionals and organizations upskill. So, whether you’re just starting out or sharpening your professional skills, there’s always something here for you. 📩 Business Inquiries: [email protected] 🎓 Explore Live & Recorded Courses: https://telusko.com/
Latest Posts
Video Description
Check out our courses: Industry-Ready Java Spring Boot, React & Gen AI -Live: https://go.telusko.com/industry-ready-course Coupon: TELUSKO10 (10% Discount) AI-Powered DevOps with AWS- Live V3: https://go.telusko.com/ai-powered-devops-with-AWS-v3 Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Java Spring:- https://go.telusko.com/Udemyjavaspring Java:- https://go.telusko.com/udemyteluskojava Spring: https://go.telusko.com/udemyteluskospring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopython Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodocker Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 WhatsApp : https://go.telusko.com/whatsapp TELUSKO Android App : https://go.telusko.com/TELUSKOAPP TELUSKO IOS App : https://apple.co/3SsgmU2 Discord : https://discord.gg/D8hWe9BqfF In this lecture we are discussing 1) datatypes for given variable a)Types of data-types? b)primitive data types c)why do we need different type of integer type? d)how to create variable of different data types? 2) range and way to declare different data variable #1 a) Datatypes are categories into primitive and non-primitive datatype. But in this lecture, we are take all concept upon primitive data type. b) There are 8 primitive datatype integer ---byte, short, int, long float --- float , double character ---char boolean --- boolean c) why do we need different type of integer ? = there are range for each type. for int --4 bytes ,long --8 bytes, short --2bytes byte --1byte d) How to create variable of different data type? = int a=10; byte b=4 = dataType variableName = value; integer variable declaration int a=5; long b=600l; // e.g 578l, 100000l represent long integer type byte c=127; short s=128; float vs double =double have more precision than float by default java support double. =declare variable of float and double type --double a=5.6; --but float b=5.6; //give error --correct way float b=5.6f; character representation = char ch='a'; //using single quotes on character we can declare char type of variable boolean representation of variable = boolean result=true; there are only two value of boolean either true or false. =In other language like c and c++ -- 0 is treated as false and non zero number treated as true but it is not in java. {byte, short, int, long, float, double, char, Boolean } since java is statically type or say strongly type language therefore we need to mention datatype for each variable for declaring variable. e.g int i=5; float f=2.5f; In java integer are by default for integer int type; for real number by default double #2 Range and way to declare different data type variable int i=5;// 4 bytes ---32 bytes -- -2147483648 to 2147483647 short s=5;//2 bytes -- 16 bytes -- -32768 to 32767 byte b=5;//1 byte -- 8 bytes -- -128 to 127 long l=5;//8 bytes -- 64 bytes -- -9223372036854775808 to 9223372036854775807 float f=5.5f;//4 bytes -- 32 bytes -- 1.4e-45 to 3.4028235e+38 double d=5.5;//8 bytes -- 64 bytes -- 4.9e-324 to 1.7976931348623157e+308 char c='a';//2 bytes -- 16 bytes -- 0 to 65535 boolean check=true; //value is either true or false ASCII - American Standard Code for Information Interchange Github repo : https://github.com/navinreddy20/Javacode.git More Learning : Java :- https://bit.ly/3x6rr0N Python :- https://bit.ly/3GRc7JX Django :- https://bit.ly/3MmoJK6 JavaScript :- https://bit.ly/3tiAlHo Node JS :- https://bit.ly/3GT4liq Rest Api :-https://bit.ly/3MjhZwt Servlet :- https://bit.ly/3Q7eA7k Spring Framework :- https://bit.ly/3xi7buh Design Patterns in Java :- https://bit.ly/3MocXiq Docker :- https://bit.ly/3xjWzLA Blockchain Tutorial :- https://bit.ly/3NSbOkc Corda Tutorial:- https://bit.ly/3thbUKa Hyperledger Fabric :- https://bit.ly/38RZCRB NoSQL Tutorial :- https://bit.ly/3aJpRuc Mysql Tutorial :- https://bit.ly/3thpr4L Data Structures using Java :- https://bit.ly/3MuJa7S Git Tutorial :- https://bit.ly/3NXyCPu Donation: PayPal Id : navinreddy20 https://www.telusko.com
You May Also Like
Upgrade Your Game Now
AI-recommended products based on this video

Acer Nitro V 16 AI Gaming Laptop, 16" WUXGA 180Hz Display, AMD Ryzen 5 240, GeForce RTX 5050, 16GB DDR5, 512GB SSD, Backlit Keyboard, Copilot, Wi-Fi 6E, Win 11, Black, 1TB Docking Station Set

Lenovo Legion 5 15.1" WQXGA 165Hz Gaming Laptop, Intel i9 14900HX, GeForce RTX 5070 8GB GDDR7, 16GB DDR5, 2TB Storage(1TB SSD+1TB Docking Station Set), 24-Zone RGB Backlit Keyboard, Windows 11, Black

NIDOO 15.6 inch Laptop Sleeve Case Computer Bag for 15.6" Lenovo Legion 5 / IdeaPad Gaming 3i / ThinkPad L15 T15 E15 / 16" Legion 7i 9i / Legion 5 Pro/ThinkPad E16 16p /Yoga 7i / Galaxy Book3 HP Dell

NIDOO Laptop Sleeve 15.6 inch Computer Bag for 15.6" Lenovo Legion 5 / Legion Slim 7 / ThinkPad T15 E15 / 16" Legion 7i / Legion 5 Pro/IdeaPad 3i / 16.1" Gaming 16 / Acer Dell Carrying Case, Black

New Slim 230W Charger fit for Lenovo Legion 5 7 5P C7 S7 Y520 Y740 Y730 Y900 Y910 Y920 Y7000P ThinkPad P16 P15 P73 P52 P70 ADL230NLC3A Square Yellow Tip Laptop Power Supply Adapter

95MM T129215SU Cooling Fan for ASUS ROG Strix for GeForce RTX 3060 3070 3080 3090 Ti Graphics Card CF1010U12S/D T129215BU(Black A-Fan T12)

ASUS ROG Strix G16 Gaming Laptop, GeForce RTX 5070 Ti 12GB GDDR7, AMD Ryzen 9 8940HX, 64GB DDR5, 2TB SSD, Backlit Keyboard, Wi-Fi 6E, 16" WUXGA 165Hz Display, Win 11, Gray, 1TB Docking Station Set

ASUS ROG Strix G16 (2024) Gaming Laptop, 16” 16:10 FHD+ 165Hz, GeForce RTX 4060, Intel Core i7-13650HX, 16GB DDR5, 1TB PCIe SSD, Wi-Fi 6E, Windows 11, G614JV-AS71-CA

Asus ROG STRIX Z890-A GAMING WIFI Z890 LGA 1851 ATX motherboard, Intel® Core™ Ultra Series 2 Ready, Advanced AI PC-ready, 16+2+1+2 stages, DDR5, WiFi 7, 2.5G, 5x M.2, Thunderbolt™ 4, USB Type-C, AI OC

230W Charger Compatible with Razer Blade 14” 15” 16" 17” (2025-2018) RZ09 RTX-3060/3070/3080/4060/4070 Gaming Laptop RC30-0530 RC30-0238 RC30-0248 Replacement Power Adapter

msi Crosshair 16 Gaming Laptop - with 2024 Office Lifetime License, GeForce RTX 4070, 16" FHD+ 144 Hz Display, 14th Gen Intel 16-Core i7 14650HX, Backlit KB, Windows 11 Pro (32GB DDR5 RAM | 1TB SSD)

MSI Crosshair 18" QHD+ 240Hz Gaming Laptop, Intel Core Ultra 9 275HX, GeForce RTX 5070 8GB GDDR7, 32GB DDR5, 2TB Storage(1TB SSD+1TB Docking Station Set), 24-Zone RGB Backlit Keyboard, Win 11, Black

MSI Thin 15 15.6" 144Hz Gaming Laptop, Intel® Core™ 5-210H, RTX 4050, 16GB DDR5, 1TB NVMe SSD, Windows 11 Home

MSI Thin15 15.6” FHD 144Hz Gaming Laptop, Intel i5-12450H, 32GB RAM, 1TB PCIe SSD, NVIDIA GeForce RTX 2050, Backlit Keyboard, WiFi 6, Win 11 Home, Black, 256GB Docking Station Set

240W 180W AC Charger Fit for Dell G15 G16 G7 G5 G3 Series 5500 5505 5510 5515 5511 5520 5521 5525 5530 5535 5587 5590 7500 7588 7590 7700 7790 7620 7630 3500 3579 3590 3779 LA240PM160 Gaming Laptop

tomtoc 360 Protective Laptop Sleeve for 15.6 Inch Acer Aspire 1/3/5 15 Slim Laptop, 15.6-16 Inch ASUS Strix G16/G15, HP Pavilion 15, Lenovo Ideapad 3 Laptop, 15.6 Inch Dell Samsung Notebook Ultrabook

Laptop Sleeve Case 11–14 Inch MacBook Air MacBook Pro Surface Laptop Dell XPS 13 HP Envy Pavilion Lenovo Yoga Slim IdeaPad Acer Swift Chromebook Samsung Galaxy Book Shockproof Leather Bag Colour Blue

Lacdo 360° Protective 16 Inch Laptop Sleeve Case for 16 Inch HP Lenovo ASUS Acer Dell Laptop/HP Pavilion Envy/Lenovo ThinkPad IdeaPad/Acer Swift/ASUS Vivobook/Dell Computer Bag, Blue Global Recycled Standard

ASUS TUF Gaming A15 Gaming Laptop, 15.6” 144Hz FHD Display, AMD Ryzen 5 7535HS Processor, GeForce RTX 2050, 8GB DDR5 RAM, 512GB PCIe SSD Gen 4, Wi-Fi 6, Windows 11, FA506NF-AS51-CA

Asus TUF Gaming 31.5” 1440P Curved HDR Gaming Monitor (VG32WQ3B) – QHD (2560 x 1440), 180Hz, 0.5ms, 1500R, Extreme Low Motion Blur, FreeSync, 90% DCI-P3, Shadow Boost, DisplayWidget, 3 yr Warranty

Asus TUF Gaming B650E-PLUS WiFi AMD B650 ATX Motherboard, 12+2+1 80A DrMOS Power Stages, DDR5, PCIe 5.0 Ready, 3X M.2, Wi-Fi 6E, 2.5Gb LAN, DisplayPort, HDMI™, USB Type-C, BIOS Flashback, Aura Sync

Asus TUF Gaming 27” 1080P Monitor (VG279QL3A) - Full HD, 180Hz, 1ms, Fast IPS, Extreme Low Motion Blur, FreeSync Premium, G-SYNC Compatible, Speakers, DisplayPort, Height Adjustable, 3 Year Warranty

tomtoc 360 Protective Laptop Sleeve for 15.6 Inch Acer Aspire 1/3/5 15 Slim Laptop, 15.6-16 Inch ASUS Strix G16/G15, HP Pavilion 15, Lenovo Ideapad 3 Laptop, 15.6 Inch Dell Samsung Notebook Ultrabook

acer Aspire Go 15 AG15-31P-31C1-CA, 15.6" FHD, Intel Core i3-N305 Processor, 8GB DDR5, 512GB SSD, Windows 11

acer Aspire 3 A315-24P-R7VH, 15.6" FHD 1920x1080 Laptop, AMD Ryzen 3 7320U, Radeon Graphics, 8GB RAM, 128G SSD, Windows 11 in S Mode

TLBTEK Keyboard Replacement Compatible with Acer Aspire A515-53 A515-53G A515-53K and Travelmate P2 P215-52 P215-53 TMP215-51 TMP215-52 P215-41 TMP215-41 P50-52 Series Laptop

llano RGB Laptop Cooling Pad with Powerful Turbofan Gaming Cooler Radiator with Infinitely Variable Speed, Touch Control, LCD Screen, 3-Port USB Hub, Seal Foam for Notebook Computer 15-19in

230W Charger Compatible with Razer Blade 14” 15” 16" 17” (2025-2018) RZ09 RTX-3060/3070/3080/4060/4070 Gaming Laptop RC30-0530 RC30-0238 RC30-0248 Replacement Power Adapter

Lenovo LOQ 15.6" FHD 144Hz Gaming Laptop, Intel Core i5-12450HX, NVIDIA GeForce RTX 2050, 16GB DDR5, 2TB Storage (1TB SSD+1TB Docking Station Set), Number Pad, 720p Camera, Wi-Fi 6, Win 11, Gray

Acer Nitro V 16 AI Gaming Laptop, 16" WUXGA 180Hz Display, AMD Ryzen 5 240, GeForce RTX 5050, 16GB DDR5, 512GB SSD, Backlit Keyboard, Copilot, Wi-Fi 6E, Win 11, Black, 1TB Docking Station Set

Lenovo Legion 5 15.1" WQXGA 165Hz Gaming Laptop, Intel i9 14900HX, GeForce RTX 5070 8GB GDDR7, 16GB DDR5, 2TB Storage(1TB SSD+1TB Docking Station Set), 24-Zone RGB Backlit Keyboard, Windows 11, Black

BINNUNE Gaming Headset with Microphone for Xbox Series X|S Xbox1 PS4 PS5 PC, Gamer Headphones with Mic Casque for Xbox 1

SENZER SG500 Surround Sound Pro Gaming Headset with Noise Cancelling Microphone - Soft Memory Foam Padding - Portable Foldable Headphones for PC, PS4, PS5, Xbox One, Switch

Ozeino Gaming Headset for Ps5 Ps4 PC, Over Ear Gaming Headphones with Noise Cancelling Microphone RGB Light, Deep Bass Stereo Sound Headset for Xbox Series X/S, Switch, Laptop, Mac, Phone




















