Declaring and Initializing Variables

Опубликовано: 14 Май 2026
на канале: Merlin Wellington
515
7

There are surprisingly many details to declaring and initializing variables! Doing these things well prevents bugs that can be really hard to find. This video explores those details with examples from a number of languages with the goal of giving you the big picture of things to worry about. #programming #declaringvariables

In this video I'll walk you through:
Implicit vs. explicit declaration
When you should use var in strongly type languages
Using const/final for parameters
Strategies for ensuring variables get initialized
Initializing memory

TIMESTAMPS
0:00 Intro
0:10 Implicit vs Explicit Declaration
2:06 Using var in Java
5:02 Using const/final
8:08 Initializing variables
11:22 Initializing memory


ABOUT MY CHANNEL
My channel is about good software engineering practices. We cover introductions to programming in C and Java. But I also have lots of software and computer engineering topics like PIC programming, advanced programming techniques, and things that distinguish good code from code that works.

Check out my channel here:
   / @wizardcraftcode  

Don’t forget to subscribe!

CHECK OUT MY OTHER VIDEOS:

C Programming Playlist:    • Coding in C  
Intro to Java Playlist:    • Introduction to Java Programming based on ...  
Software Engineering Topics Playlist:    • General Software Engineering Topics