This session is dedicated to examples and code in Java.
Java programming language is a powerful general-purpose programming language. It is based on object-oriented and is a class-based programming language.
Java runs the code in a Virtual Machine (JVM). Classes and interfaces are the core functionality of the Java platform.
Software Developers prefer Java to build mobile applications or desktop applications that use different operating systems and servers, such as Linux or Windows.
With more than 15 years of experience in teaching programming languages, I am focused on solving problems and explaining in detail the solutions.
In this session, I will explain the main components of Java programming, such as Java syntax, Java classes, data types, Java strings, Java packages, classic math problems explained in detail.
You can test your skills by trying to solve the most classical problems. Or you can try to understand the main concepts you should know to implement the algorithms.
For each program, we will test and show the console, as the output result.
Anagram program in Java
A typical problem concerning Strings is to check if two strings are anagrams. It covers the concepts of Arrays and characters in a String.
Palindrome Program in Java
This is a typical Java program to find if the String is Palindrome. It covers the concepts of loops and comparing characters in a String.
Factorial Program in Java
A problem based on mathematics and so much applied in real life: The factorial of a number. It covers the concepts of the loop and math concepts.
The importance of the instance variable in Java
Check out the full guide to instance variable, and how is declared and used.
Spring Boot Tutorial
A very practical guide to implementing a web application in Spring Boot and a REST Service.
Prime number Checker
This is a typical example of a mathematical problem, here we discuss the algorithm and the solution in Java.
Learn Design Patterns
Design Patterns represent the best strategies that model the solutions to general problems in software development.
Design Patterns have two main usages in software development.
- Common platform for developers
Design patterns provide the standard terminology and are specific to particular scenarios.
- Best Practices
Design patterns have been evolved over a long period of time and they provide the best solutions to certain problems faced during software development. Learning these patterns helps inexperienced developers to learn software design in an easy and faster way.
What is Gang of Four (GOF)?
Design Patters was initiated as a concept in 1994, when four authors Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides published the book Design Patterns – Elements of Reusable Object-Oriented Software.
These authors are collectively known as Gang of Four (GOF). According to these authors, design patterns are primarily based on the following principles of object-orientated design.
- Program to an interface, not an implementation.
- Favor object composition over inheritance.
In Java Programming, there are mainly three types of design patterns:
- Creational Design Pattern
- Structural Design Pattern
- Behavioral Design Pattern
Read the newest Tutorial: Observer Design Pattern in Java