P
P
PRAIT2019-06-14 10:38:56
Java
PRAIT, 2019-06-14 10:38:56

Please show code example JavaFX (GUI) and java under web what is the difference?

In the previous question, I was told that Java Destop and Java Web are different and the Destop developer will have to retrain on the Web, is this true? Maybe you have a sample code of the same application for an example? I just really want to see what the difference is.
Probably in packages, etc? But it's variables. methods are still the same.
Here is an example of console input
import java.util.Scanner
Modal windows
JOptionPane
Please explain if you have time! Thanks to!!!!!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2019-06-14
@PRAIT

The difference is in everything. There are not only different packages, there are even different architectural principles. The canonical example of a Spring web application is PetClinic . Same for JSF+EJB .

R
Ryabos, 2019-06-20
@Ryabos

This topic is exhaustively described in the book "Clean Architecture" by Robert Martin. In particular, chapter 21 is devoted to the fact that the architecture of the application is not related in any way to the launch platform and the framework used.
Regarding "relearning between the desktop and the web" - it sounds like "relearning between a screwdriver and a hammer." Will you have to learn new tools? Undoubtedly. But this does not mean that the already mastered baggage of knowledge will become a burden. Both desktop and web and mobile development have a common denominator. And implementation details sooner or later replace each other, even within the same platform.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question