Join Peggy Fisher for an in-depth discussion in this video Understanding implicit and explicit conversion, part of Learning Java.
- Sometimes it is necessary…to change the data type of a variable.…There are two ways to accomplish this change,…using implicit and explicit data conversion.…Although we already talked about the fact…that Java is a strictly data-typed language,…and it is really important to declare each variable…with a specific data type,…the type of data stored at that variable name…can be changed both temporarily and permanently…using something called implicit and explicit conversion.…An implicit conversion occurs…when an equation has more than one data type,…such as an integer and a double.…
The computer must decide which data type to use…for the result of the equation.…Implicit conversions always use…the largest data type from the equation.…For example, if you multiply…10 * 15.75,…the result should be 157.50.…We automatically know that we wanna include…the fractional portion of our result.…Another good example of this situation…is probably finding the average…of a group of numbers.…If the numbers are integers,…you still wanna make sure…
- Downloading and exploring NetBeans
- Understanding Java basics: data types, strings, arrays, and more
- Controlling flow with functions and loops
- Creating classes
- Sorting and searching arrays
- Manipulating files
- Handling errors
- Building GUIs
Skill Level Beginner
1. Getting Started
2. Java Basics
3. Flow of Control
4. Classes and Objects
5. Beyond the Basics
6. File Manipulation
7. Graphical User Interface Basics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.