Java is a strictly pass by value language. What do we mean when we say that? We are talking about of how we are passing parameters to our methods.

There are over 5000 built-in classes in JAVA, and it is hard to say how many classes that were created by developers like you and me. Java’s “import” declarations (sometimes called statements) allow the use of all these classes. To do that, we have to follow the JAVA keyword “import”…

Java has a number of operators for working with variables.

In this post I focus on increment “++” and decrement “ — “ operators.

The job of increment operator to increase the value by one, and it would only make sense that decrement operator would decrease the value by one…

Switch statements in Java are multi-ways decision making constructs that allow a variable to be tested against a list of values. Take a look at the structure of switch statement:

There is a number of thing that might go wrong in a program. Java exceptions is the way java program deals with things if something goes wrong. …

This post is about hiding and overriding methods and it can not be done without divulging into the notion of inheritance. Inheritance is one of the four concepts of Object Oriented Programming (OOP) in JAVA (abstraction, encapsulation, and polymorphism are the other three). Inheritance allows us to create new classes…

In JAVA 8, our OOP (Object Oriented Programming) language got a number of new features, and lambda expressions (lambdas for short) were one of them. Lambdas allow us to use Java for functional programming. In OOP, we deal with the states of objects, while in functional programming we write directly…

We are going to use JavaFX to create a game, where we steer the space ship through asteroids while shooting them down.

We can start by creating an abstract class HeavenlyBody that could be extended by concrete classes SpaceShip and Asteroid. …

In the short post:

there are steps to start designing JavaFX application. The short application in the post does not go past displaying user interface. In order, for user interface to perform as desired, user interface components need to have event handlers attached to them. Whenever an action performed on…

Anna Scott

Java, Android developer. Some Python.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store