GUI programming with Java What is “Event driven programming”? Graphical User Interface and Basic Terminologies Simple GUI example Java GUI layout example More information: All lessons >...Read More
File handling with Java Streams are a way to efficiently process and manipulate data in Java. When it comes to File I/O (Input/Output) operations, Java provides a set of classes for working with files...Read More
Java Exception framework A mechanism provided by the Java programming language to handle unexpected or exceptional situations that may occur during the execution of a program.Exceptions represent situ...Read More
We learn about the importance of “Generics” and “Collections”: Generics in Java allow you to create classes, interfaces, and methods that operate on any type (or types) specifi...Read More
We learn about the importance of “Interface” feature of OOP: In Java, an interface is a way to achieve abstraction. It’s like a blueprint of a class, defining a set of methods that a...Read More
We learn about Object Oriented Programming principles: Classes vs Objects Abstraction Instantiation Encapsualtion with Setters and Getters Inheritance via Parent and Child classes Polymorphism Object-...Read More
We learn about Java variable scope, boxing/unboxing (wrapping) and Arrays Scope of variables You may notice that some lines are commented, because they cant be executed. Please un-comment them ...Read More
We learn about JAVA user input with Scanner class, decision making with if-then-else and switch-case, then for, while, do-while loops along with advance for loop. Marks and grades Switch-Case e...Read More
Simple Java code snippets Calculating circumference of a circle Odd/Even detector with modulo operator Age calculator If the age is less than 18, then the person is a child All lessons >...Read More
Java data types Operators Variables Generating JavaDoc with NetBeans. Using TODO to track action items Java data types The following code tests various data types including sinhala unicode. Java arith...Read More