
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Install and configure NetBeans to set up a Java development environment, install the JDK, use autocomplete and Git for versioning, and learn core Java concepts like classes, methods, and objects.
Create your first Java program by starting a new Java project, adding a Hello World class with a main method, and printing hello world using System.out.println, then run.
Learn how variables act as store locations with symbolic names that hold values, change at runtime, and are manipulated through assignments in C.
Explore data types as value types, including bool, int, char, float, double, string; learn memory allocation, default values, range, and strong versus weak typing that shape assignment and equality.
Learn how programs declare and update variables, and apply arithmetic, remainder, and relational operators, along with logical and conditional operators, to evaluate expressions and produce boolean results.
Learn the Java declaration rules: one public class per source file; the public class name matches the file name; a file may contain non-public classes; package/import statements apply to all.
Explore a Java dog program that demonstrates objects and classes by creating a Dog class with a constructor, instance variables, and methods to set and get age.
Master Java conditional logic with if statements and else blocks. Learn how boolean conditions control which commands run, enabling simple calculators and decision making in programs.
Explore how if statements and if-else structures drive decision making in Java, with nested ifs and switch-case patterns, including break and default cases.
Explore loops and iteration in Java, focusing on while and do-while constructs, how conditions and increments control repeated execution, and how to avoid endless loops.
Explore loops in Java, including for, while, and do-while, to control repetition, with step-by-step examples and guidance on break and continue for effective flow control.
Explore arrays as a fixed-size data structure that stores elements of the same type. Declare, initialize, and access array elements by index, print them, and understand base to last index.
Learn how two-dimensional arrays organize data with first and second indices, compare them to one-dimensional and three-dimensional arrays, and use multi-level data like classes and students.
Explore arrays in Java, a fixed-size, same-type collection, and learn how to declare, access elements by index, print all elements, and compute sums, minimums, and maximums with loops.
Explore multidimensional Java arrays via a two-dimensional rating matrix, using zero-based row and column indices to compute averages and understand bounds and element access.
learn how functions are reusable code blocks with specific inputs and outputs, including function signatures, parameters, return types, and examples like hello world and max to illustrate usage.
Learn how to use files for input and output, including read-only, write-only, read/write, and append modes, and work with extensions like .c, .cpp, and .py across C/C++, Java, and Python.
Master file input/output in Java using file input stream and file output stream to copy text between files, and learn basic IO exception handling including file not found.
Explore the ideas of object-oriented programming, objects with attributes and methods, and their interactions via this or self. Learn how analysis and design organize requirements around objects toward Java implementation.
Explore objects and classes as the core of object oriented programming, where classes define data and methods, and objects are instances with state and identity, while inheritance enables code reuse.
Learn how Java uses classes as blueprints to create objects with states and behaviors, explores constructors, the new keyword, and instance and class variables, plus basic object creation steps.
Discover how Java organizes code with packages and imports, create a student class with constructors and methods, and test it with a main method in a simple student management program.
Learn how methods define behavior in object-oriented programming, including class variables, instance variables, member variables, class methods, and instance methods, and how they relate to classes and objects.
Discover how to create and use methods in java, with and without return values or void, including parameters, method bodies, and max number logic, plus invocation and abstraction.
Discover how encapsulation binds data and methods in a class, and how data hiding enforces access restrictions with private, public, and protected modifiers to protect internal state.
Explore message passing and dynamic dispatch, where a method call is executed by the receiving object, enabling inter-object communication and unidirectional method invocation.
Inheritance lets new classes extend existing ones, reusing parent methods and variables while adding specialized features, and exposes five types of inheritance: single, multiple, multilevel, hierarchical, and hybrid.
Polymorphism in object oriented programming is demonstrated by calling code that remains agnostic to subclass types, showing how circles, squares, and animals implement the same method differently.
Generalization merges common class characteristics into a higher-level superclass and establishes is-a relationships, while specification uses distinguishing features to form specialized subclasses from existing classes.
Explore links and associations in object-oriented concepts and how objects relate across classes. Identify one-to-one, one-to-many, and many-to-many cardinality and their role in design.
Master SQL through a three-step process, learning the structured query language for retrieving and managing data across databases like MySQL, MariaDB, and SQL Server.
Understand why SQL is essential for accessing, defining, and manipulating data in relational databases, and how apps rely on SQL to manage databases and tables.
Install a local web server stack with XAMPP, Apache, and MySQL, plus SQLYOG as the database client, via a guided setup across Windows, Linux, and Mac.
Start and stop modules from the control panel, including the Apache web server and the MySQL server, then verify the MySQL instance on port 3306 with its process ID.
Connect to localhost as root with an empty password on port 3306, create a new database named 'my new test database', then test the connection.
Learn how to use queries to show databases, execute create and drop database statements, and recover by recreating a dropped database while understanding the risk of data loss without backups.
Learn to create database tables step by step, defining id as an integer, name as varchar, setting not null constraints, and establishing a primary key for unique student records.
Learn how to drop a table with the drop table command, verify with a select, and insert new rows using insert into within a database.
Learn how to write insert statements, specify columns or use all columns, insert values, and verify results using a students table example.
Learn to create a new table from an existing one using a select statement, duplicating data with as select * from students, and understand that select results form result sets.
Learn the basic select statement syntax in SQL by selecting all columns or specific columns from a table, and how to execute to view names and ages.
Learn how to use the where clause to filter records in a select query from a table, using conditions like id = 10 or name = 'Greece'.
Master SQL operators beyond equals, such as greater than, greater or equal, less than, and less or equal, and combine conditions with and or to filter data from students.
Modify existing records using update queries by applying the update syntax: update table set column = value where condition, and learn to update single or multiple columns and rows.
Master deleting data with delete statements by removing a specific record with delete from students where name equals Chris, and remove all records using delete from students.
Master the like operator in where clauses using percent wildcards to match patterns, such as names containing mal or starting with Chris, and distinguish like from equals.
Learn to limit data across MySQL, MSSQL, and Oracle using limit, top, and rownum to retrieve the top N records from a table with cross-database guidance.
Learn to use the order by clause to sort results in ascending or descending order by one or more columns, including multiple columns.
Group by clause groups identical data using a select statement and precedes the order by clause, enabling aggregates like sum and counts by name.
Learn to use the distinct keyword with select to eliminate duplicates and return only unique records, and master the basic syntax: select distinct column from table where conditions are true.
discover how to delete data in SQL using truncate table and delete from, compare with drop table, and verify results with select, gaining a basic overview of SQL commands.
Learn Java by turning short requirements into programs you can trace, test and explain. This beginner course combines foundational lessons with coding exercises, object-oriented topics and an additional introduction to SQL databases.
Begin with the development environment and a first program, then explore variables, data types and operators. Work through conditional logic, loops, arrays, files and exception handling before moving into objects and classes. The database section widens the picture with tables, data changes, filtering, ordering and grouping.
Skills to build through practice
State what a program should receive and return.
Follow the execution path through a decision or repeated operation.
Break a task into methods with clear responsibilities.
Use a small example to identify an incorrect assumption.
The final Java labs ask you to classify integers, verify method results and explain a method contract. Define how ordinary, empty and boundary inputs should behave, then compare that plan with the implementation. This gives you a practical bridge between following a demonstration and writing code you can defend.
Choose this course if you are beginning Java or returning to its foundations and want explanations alongside exercises. You can work through one concept at a time and extend a small solution before moving to the next section.
A compatible local Java environment is useful for reproducing the demonstrations. Recorded editor screens may differ from current versions, so check official setup documentation when needed. Review the curriculum if your priority is a particular Java topic or if you want to assess the balance between language lessons and the separate SQL introduction. The aim is a useful programming foundation for your next project or course.
A structured first route through Java
This course introduces Java through the constructs that make small programs work: values, decisions, repeated operations, collections and methods. It then extends the foundation into objects, files, exceptions and database ideas. The useful goal is to become more independent when reading or writing a short example. Instead of relying on a finished solution's appearance, you can explain the input, the rule and the expected result. That makes the course relevant to a beginner or a learner rebuilding confidence after an uneven first introduction.
Setting up for practice
The introductory material includes the development environment and early examples. A compatible Java development kit and editor will let you investigate the code yourself, though installation screens may differ from the recordings. Keep a simple project area with a few clearly named files. The purpose of setup is to make experimentation possible, not to turn tool configuration into the entire learning task. Once an example runs, change one value and predict the effect. A small deliberate experiment gives the installation work a concrete purpose.
Understanding values and conversions
Variables, operators and data types are easier to learn when tied to a meaning. A count, a label and a calculated result are not interchangeable just because each can be displayed. Ask what an expression expects and what it produces. If a value changes type, explain why that conversion is appropriate. These questions help distinguish a language rule from the particular numbers in an example. They also make a compiler message more informative, because you have an explicit expectation to compare with what the tool reports.
Making branches cover the intended cases
A conditional rule divides possible inputs into situations. The course's decision examples provide a place to practise that division. State the cases first and pay attention to the boundary between them. A value exactly at a limit can reveal whether your interpretation includes equality in the right place. This is a small but important habit. A program can behave correctly for several ordinary inputs and still fail to express the requirement. Your explanation should identify the rule, not merely list the outputs you happened to observe.
Loops, arrays and a traceable sequence
Repeated work becomes clearer when you connect the loop with the data it processes. Identify the valid positions, the initial state and the value that changes on each pass. Then trace the sequence far enough to explain how it ends. The array and loop recordings support that practice. Keeping the dataset small makes mistakes easier to locate. Later, a larger collection can use the same reasoning, but you first need confidence that the basic progression and boundary are correct.
Files and exceptional paths
The curriculum introduces file operations and exception handling as part of the broader foundation. These topics ask you to consider what happens when the ordinary path is interrupted. A file may not be available in the way an example expects, or an operation may not complete normally. Describe those assumptions in your notes rather than treating them as invisible guarantees. The course offers introductory examples, not complete production resilience engineering. It can nevertheless help you recognise that a program's behaviour includes more than the path taken by one successful run.
Methods and object responsibilities
The object-oriented section introduces classes, methods and relationships. Connect the vocabulary with what an object represents and what a method promises to do. The additional method-contract reading makes that question practical: a caller should be able to understand the result without unexpected effects. Explain the input, output and relevant assumptions. A small class or function you can discuss clearly is a stronger foundation than a large design copied before its responsibilities are understood.
Checking integer classifications
The reading lab uses integer classification to practise defining a result and testing a method. This brings conditions and method behaviour together in a focused setting. Choose examples for a reason: one ordinary case and one that probes the edge of a rule. Keep your prediction beside the observed result and explain a disagreement. The activity is not valuable because the problem is large. It is valuable because the rule is small enough that you can inspect and defend your interpretation of it.
The database connection and your next step
The SQL extension introduces stored records beyond a single Java execution. Use it as a bridge to later application work rather than as complete database training. This course is a good fit if you want a broad Java foundation and practice with explainable examples. It is not a promise of a current certification, advanced enterprise architecture or a finished professional portfolio. Aim to finish with a small set of programs whose behaviour you can describe, then choose deeper Java, database or project study according to the work you want to do next.
Curriculum at a glance
IDE Installation, Variables, Data Types and Examples in Java
If-Statements and Conditional Logic in Java
Java Loops and Iteration
Arrays, Files and Exceptions in Java
Object-oriented Programming in Java
Beyond Java: From Java to SQL - Using Databases to Store Data