Java for Complete Beginners
Video Lectures
Displaying all 47 video lectures.
Lecture 1![]() Play Video |
A Hello World Program A Java tutorial for complete beginners, using the free Eclipse IDE. How to create a "hello world" Java program. |
Lecture 2![]() Play Video |
Using Variables A guide to primitive data types in Java for complete beginners. The second part in the tutorial series from Cave of Programming. |
Lecture 3![]() Play Video |
Strings (Working with text) A tutorial on using Strings in Java from caveofprogramming.com, plus a quick review of how to create a Java application in Eclipse. |
Lecture 4![]() Play Video |
While Loops In the fourth part of the Java tutorial for beginners video series using Eclipse, we look using loops to make your code repeat statements multiple times. We also take a look at conditions. |
Lecture 5![]() Play Video |
For Loops * Click the icon in the lower-right-hand corner to maximise! * Part 5 of the Java tutorial for complete beginners from Cave of Programming. This time I'll show you how to use 'for' loops in Java, as well as looking briefly at format specifiers for strings. |
Lecture 6![]() Play Video |
If The if() statement in Java, plus "break" for breaking out of loops. |
Lecture 7![]() Play Video |
Getting User Input A tutorial on how to get user input in your program using the Scanner class. |
Lecture 8![]() Play Video |
Do ... While Loops How to use do...while loops in Java, plus variable scope and multi-line comments. I take a look at a solution to a commonly-assigned beginner's exercise in Java. |
Lecture 9![]() Play Video |
Switch How to use the switch statement in Java. |
Lecture 10![]() Play Video |
Arrays How to use arrays in Java; creating, accessing and iterating through arrays. Also, a look at the difference between a value and a reference. |
Lecture 11![]() Play Video |
Arrays of Strings A tutorial on arrays of Strings in Java, plus another way to iterate through an array, and more stuff on the difference between values and references. |
Lecture 12![]() Play Video |
Multi-dimensional Arrays How to work with multi-dimensional arrays in Java, including some tips on how to remember which index is which. |
Lecture 13![]() Play Video |
Classes and Objects A basic tutorial on using classes and objects in Java, plus some discussion of what classes and objects actually are. This tutorial focuses on classes containing only data; next time I'll look at "methods". |
Lecture 14![]() Play Video |
Methods This is a tutorial on using methods (subroutines) in Java; in this video I'll show you how to add behaviour to your Java classes so that they can do stuff as well as store information. |
Lecture 15![]() Play Video |
Getters and Return Values This tutorial shows you how to create "get" methods for your Java classes, and I'll also show you how to return values from methods in general. |
Lecture 16![]() Play Video |
Method Parameters How to pass data into Java methods, plus a look at one of the aspects of method parameters that beginners find particularly confusing. |
Lecture 17![]() Play Video |
Setters and 'this' How to create set methods in Java, plus how to use 'this'. What mistake do beginners make with 'this' and when do you REALLY need 'this'? Find out in this video. |
Lecture 18![]() Play Video |
Constructors A tutorial on constructors in Java; what constructors are and how to use them, how to create multiple constructors and how to call constructors within other constructors. |
Lecture 19![]() Play Video |
Static (and Final) A tutorial on how to use the static keyword in Java, plus a bit about 'final' and constants. The first part of this tutorial just demonstrates the basic idea behind 'static'; then I move on to show you how to create constants, how to count your objects and how to assign objects unique IDs. |
Lecture 20![]() Play Video |
StringBuilder and String Formatting This is a tutorial on StringBuilder, StringBuffer (used for efficient appending of String) and some nifty string formatting of the kind encountered in every Java course, unveiling the mysteries of the infamous printf() method. |
Lecture 21![]() Play Video |
toString() and the Object class This is a tutorial on the important toString() method in Java, which allows you to create a text representation of your object. Highly useful for debugging and much used in the Swing framework for example. |
Lecture 22![]() Play Video |
Inheritance A tutorial on basic inheritance in Java. (Apologies for the dodgy sound on this one!). |
Lecture 23![]() Play Video |
Interfaces An introduction to interfaces in Java. This tutorial covers most of the mechanics of interfaces, which are really quite a simple idea -- although a full understanding of when to use interfaces takes a little experience to acquire. |
Lecture 24![]() Play Video |
Packages This is a tutorial on packages in Java, including a look at the import statement and why you never actually need to type it yourself. |
Lecture 25![]() Play Video |
Public, Private and Protected This is a tutorial on the public, private and protected keywords in Java. |
Lecture 26![]() Play Video |
Polymorphism Polymorphism: a big word that describes a relatively simple concept. In this tutorial we'll look at what polymorphism is in Java, along with a couple of aspects of it that might catch you out. |
Lecture 27![]() Play Video |
Encapsulation and the API Docs This is a tutorial on the OO concept of encapsulation; why we use the public, private and protected keywords. I'll also explain a bit about how to read API documentation and how that ties in with the concept of encapsulation. |
Lecture 28![]() Play Video |
Casting Numerical Values This is a tutorial on casting numerical types in Java; an important topic and one that we'll expand on in the next tutorial on upcasting and downcasting. |
Lecture 29![]() Play Video |
Upcasting and Downcasting This is a tutorial on upcasting and downcasting in Java, an important topic that you need to know to write Java programs effectively. |
Lecture 30![]() Play Video |
Using Generics This tutorial introduces generics by way of the ArrayList class. If you only learn one thing about parametrized classes, learning to use the parametrized ArrayList class should probably be it. |
Lecture 31![]() Play Video |
Generics and Wildcards This is a tutorial on using the wildcard with generics in Java; a useful but quite advanced technique. |
Lecture 32![]() Play Video |
Anonymous Classes This tutorial's about anonymous classes; a quick and easy way to extend a class or implement an interface in Java. |
Lecture 33![]() Play Video |
Reading Text Files This is a video on the simplest way to read a text file line-by-line in Java. |
Lecture 34![]() Play Video |
Handling Exceptions A guide to handling exceptions in Java. What are the two ways of handling an exception, and what do they do? |
Lecture 35![]() Play Video |
Throwing Exceptions A tutorial on throwing exceptions in Java. You can throw your own exceptions when something goes wrong in your code, sending you straight out of the problem area. |
Lecture 36![]() Play Video |
Multiple Exceptions In this tutorial we'll look at throwing and handling multiple exceptions in Java, including a look at a popular interview/exam question. |
Lecture 37![]() Play Video |
Runtime Exceptions Runtime exceptions are exceptions that you're not forced to handle. They usually point to serious flaws in your program, and understanding them is important. |
Lecture 38![]() Play Video |
Abstract Classes Abstract classes allow you to define the parent class of a new class hierarchy without allowing your use to instantiate the class. You can implement functionality that you anticipate all child classes will need. |
Lecture 39![]() Play Video |
Reading Files with FileReader In this tutorial we'll look at ye olde traditional method for reading files in Java. It might not be the easiest way to read files, but it's by far the most flexible and therefore vital stuff to know. Plus, they ask you this in exams ... |
Lecture 40![]() Play Video |
Java 7 Try With Resources A tutorial on a Java 7 language feature that can help simplify code quite a bit; the "try with resources" construct. We'll take a look at an example here in which it actually lets us avoid the horror of nested try-catch blocks, and that certainly can't be bad. |
Lecture 41![]() Play Video |
Writing Text Files A tutorial on writing text files in Java. |
Lecture 42![]() Play Video |
Equals A tutorial on the important .equals() method in Java, used for comparing the meaning of two objects, and vital when comparing Strings. |
Lecture 43![]() Play Video |
Inner Classes A tutorial on inner (nested) classes in Java; static, non-static and local. You can declare classes almost anywhere in Java, and here will look at some interesting and useful places to declare classes, and why you might want to. |
Lecture 44![]() Play Video |
Enum How to use "enum" in Java. In the first part of this video I'll go over the basic usage of enumerations and what they're intended to replace, then we'll look at how enum works under the hood and some more advanced syntax. |
Lecture 45![]() Play Video |
Recursion Java Swing course: http://www.udemy.com/java-swing-complete/?couponCode=youtube A tutorial on recursion in Java. Recursion is a useful programming technique that every beginner should learn about, but it should used sparingly since it's easy to create bugs with it. On the other hand, some problems are hard to solve without recursion, while recursive solutions may lead to short, elegant solutions. |
Lecture 46![]() Play Video |
Serialization . Serialization allows you to save objects to files and restore them later; a surprisingly simple way to implement saving and loading in your application. |
Lecture 47![]() Play Video |
Serializing Multiple Objects Building on the last tutorial, in this tutorial we'll take a look at how to serialize entire arrays or array lists, either all at once or object by object. |