Java is an object-oriented language, and one of the most important principles of object-oriented programming is encapsulation. Encapsulation means that you're packaging complex functionality to make it easy to use. When you first create Java applications, most new programmers will put all of their code into the main method. But as your applications get larger and more complex, putting all of the code into one place makes it very difficult to manage.
- [Instructor] Java is an object-oriented language…and one of the most important principles…in object-oriented programming, is called encapsulation.…It means that you're packaging complex functionality…to make it easier to use.…When you first create Java applications,…most new programmers will put all of their code…into a main method.…But as your applications get larger and more complex,…putting all of the code in one place,…makes it very different to manage.…So instead, you want to break the code out…into individual classes, grouping the functionality…as the logic dictates for your application…and each of those classes, can do it's part of the job.…
Here's an analogy.…Let's take a look at a non-encapsulated industrial machine.…This is an olive press.…In order to use this machine,…if you were asked to know everything about how it worked,…it might be different to get started.…If you had to know which direction each gear…was going to turn, which order each of the pressing arms…was going to come down…and how much oil might come out of each individual olive,…
- 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.