What comes after POO?

Asked

Viewed 120 times

1

I am finishing the course of POO in Java and would like to take a doubt.

So far I have not been given anything regarding how I could put a desktop development for third party use. For example, on websites you need a hosting platform (right?), and how does it work for Java applications?

Another thing, how the database works within Java?

  • 1

    The most important thing is to know what comes first.

1 answer

4


Java can be used for either a client application, containing the interface that the user will use for their tasks, or in a server application, receiving HTTP requests and responding the way you want.

In the first case, client-side application, you can make use of the Swing framework to mount the application windows and program the buttons and what you want most. And there are libraries to do the most varied things in GUI applications with Java, such as the Jfreecharts which allows plotting graphics in the window.

In the second case, as a server, you would make use of the Httprequests API to formulate, send, receive and process HTML requests. Some frameworks help a lot here, like Spring and Primefaces, this focused on the visual layer of the application. There is also the possibility to use the JEE edition, with features such as Servlets for processing and JSP for the pages that will be used to receive user data (forms).

In the mixed case, that Java acts as both a client and a server, you can use both of the above, provided that the connection between them is made.

Over databases, the connection is usually made by drivers and an API, the JDBC (JAva DminutesBase Connection). There are frameworks for this too, such as Hibernate.

  • You’ve made it very clear, thank you!

  • Some points: Javafx is more current than Swing. And before Primefaces learn JSF.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.