Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaFX - difference between modular and non-modular

Tags:

java

javafx

At the moment I am reading the 'Getting started' of JavaFX. It distinguishes modular and non-modular approaches.

For example among 'JavaFX and Eclipse': 'Non-modular from IDE' and 'Modular from IDE'..

What's the difference between this terms?

like image 319
mrbela Avatar asked Nov 12 '19 15:11

mrbela


People also ask

What does modular mean in Java?

What is Modularity in Java? A module is more like an independent partition of software that is communicated through an interface. Modularity explores the creation of a program by using different modules than a single legacy architecture.

What is a modular project?

A modular project is one that consists of several similar entities, or modules, which are the object of similar functions or processes applied repeatedly.


1 Answers

Introduction

The differences can be defined in many ways, I will define it to you in one way to understand the logic behind it.

Modular

The word Modular defines that modules are integrated into the project.

When you create a JavaFX project and add a class called module-info.java to the JavaFX project, you must add modules. Adding modules proves that the project is a modular JavaFX project.

Non-Modular

The word Non-Modular defines that no modules are integrated into the project.

If you create a JavaFX project and do not integrate a class named module-info.java, the project is Non-Modular because no modules are added to the JavaFX project.

The word Modular and Non-Modular has many meanings in computer science, I have defined it for you as I saw the question from my point of view.

like image 107
AVAIDN Avatar answered Sep 20 '22 05:09

AVAIDN