I often find large projects that have the pom.xml file, but I never understood the utility of it, I just discovered that it is something related to maven. Anyway:
What is Maven for?
What is the pom.xml file for?
It is known that Java does not support multiple inheritance . Is it correct to say that the interface concept solves the problem of multiple inheritance in Java? If so, why?
I'm using Eclipse Mars.1 for Web development, I got this error by including a file JSP , The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path .
I also have Tomcat 8 running on the PC.
I'm writing a game based on the breakout , but I can not think of a way to detect the collision between the corner of the ball area and the paddle, to be able to reverse the horizontal direction of the ball.
In my class Ball , I have a...
I'm trying to convert a JSON string to a Java object used by Gson.
This is the json I get from webservice:
{"concurso":
{
"numero":1499,
"data_sorteio":"01\/06\/2013",
"dezenas":[8,22,26,33,37,54]
}
}
Here...
A question that always teases me when I'm in a Java project in which we use terms in Portuguese is to deal with method names or variables that represent somehow two things and need to mention both in the method / variable name. In English, and i...
I have class Solicitacao and class Servicos . After insertion into the database I want to retrieve in a query all the services associated with that request.
For example, on one screen I insert the request and several services. Wh...
I would like to force some of my classes to be implemented in Singleton, but I came across the following situation.
interface ICharacterSingleton{
static Characters getInstancia();
}
public static class Zero extends Characters implements...
I'm studying Hibernate and with it came some doubts that have come to me before but did not question in depth.
public void salvar(Usuario usuario){
Session sessao = null;
Transaction transacao = null;
try{
sessao = Hiberna...
When I installed and tried to open it for the first time, it worked perfectly, however, when I tried to open it again later, when I click on "Start a new Android Studio project", the window opens but it stays transparent forever (as you can see...