All good integrated development environments for Java provide debugging capabilities. These include the ability to set breakpoints and to watch variable values so that you can find out where errors are occurring in your code. A breakpoint lets you suspend your application on a certain line of code.
- [Instructor] All good integrated development environments…for Java provide debugging capabilities.…These include the ability to set break points,…and to watch variable values, so you can find out…where the errors are occurring in your code.…A breakpoint suspends your application…on a certain line of code.…IntelliJ IDEA lets you put in simple…breakpoints very easily.…I'm going to add a bit of code to this project…after creating an array of characters.…I'll start by typing "for each", and pressing Tab,…or Enter or Return, and that expands into a for-each loop.…
Within the loop, I'll create a character variable…that I'll name "character", and I'll get…that value from the char's array.…Within the loop, I'll output the current character.…And when I run the application, I see…each character displayed on its own line.…Now, I'd like to suspend the application…on the line where I'm outputting the character.…I'll click on the trough next to the line number,…and that creates a breakpoint.…Then, I'll run the application in debug mode.…
- Debugging Java code
- Handling exceptions
- Creating custom classes
- Working with inheritance
- Managing data collections
- Using Java packages and libraries
- Preparing a Java application for deployment
Skill Level Intermediate
1. Exception Handling and Debugging
2. Create Custom Classes
3. Work with Inheritance
4. Manage Data Collections
5. Use Java Packages and Libraries
Work with dates and times7m 12s
6. Prepare a Java Application for Deployment
Next steps1m 12s
- 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.