Most programming languages support the ability to create reusable code, which are code blocks that you can call from multiple places in an application. These are sometimes called functions or subroutines. But in Java they're called methods, and they're always declared as members of a class. A static method belongs to the class itself, not to an instance of a class.
- [Instructor] Most programming languages…let you create reusable code,…code blocks that you can call…from multiple places in an application.…These are sometimes called functions…or subroutines in other languages,…but in Java they're called methods,…and they're always declared as members of a class.…Each method starts with one or more declarations.…The methods return type is required.…The main method that starts up a command line application…has a return type of void,…meaning that it doesn't return anything.…
This is something that might be called…a subroutine in other languages,…but it's simply called a method in Java.…The keyword public is an access modifier.…It determines the visibility of this method…to the rest of the application.…The public access modifier means…it can be called from anywhere.…Other access modifiers include private and protected,…and the absence of an access modifier has its own meaning.…Static means that this method…can be called directly from the class…without first creating an instance of that class.…
- 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.