Questions tagged as 'java'

3
answers

Create and Validate Digital Signature in Java

I am trying to sign a test NFE with a self-signed digital certificate through the code below. The code in principle works, the signature is generated in the file and the validation done through the keystore works, but when I use another code to...
asked by 13.10.2014 / 15:13
0
answers

CardView does not display information from a JSON [closed]

I am trying to set some information in a CardView, where these are obtained from a JSON, however, it does not display, the information search is ok, it returns the values normally but does not display in the app .. @Override public void onCre...
asked by 12.06.2015 / 20:28
1
answer

How to make ProGuard remove a class method?

I can not get ProGuard 4.10 to cause a static method to inline . I only get this with instance methods. For example, this short stretch: public final class Calc { private int x = 0; public int getX() { return x;...
asked by 15.01.2015 / 04:17
3
answers

Maven Module vs Java 9 Module

In addition to the fact that Maven works with jars and Java 9 with "modules", what is the difference between the modularization system of the two? Why would I fail to modularize my systems with Maven to modularize with Java 9?     
asked by 04.08.2017 / 16:20
2
answers

Is there any reason for the separation of java and javax packages?

In the java documentation , there are several packages organized within the java and javax packages, for the most part. There are even some packages that seem to be duplicates, such as java.sql and javax.sql . Is there any expl...
asked by 17.03.2017 / 12:18
3
answers

Is there any Eclipse feature that includes "this." before any variable where this is implied?

Every time I see myself putting this. before variables that are class attributes in non-static methods. Does eclipse have any option that applies this to all source files?     
asked by 30.01.2014 / 20:22
3
answers

Why Arrays start at 0 instead of 1 [duplicate]

Why arrays start at 0 instead of 1? There are not 0 people, 0 animals, 0 nothing ... (do not cling to this part) What is the purpose of doing this? I think it's not just me who does not understand the logic of it, if at all.     
asked by 12.02.2018 / 00:41
3
answers

What is the meaning of an attribute being private and static at the same time in a class?

I'm studying about design pattern singleton , and in a code snippet in java , I came across a situation where I was in doubt. Here is the code snippet below: public class Conexao { private static Conexao instance = new Cone...
asked by 21.11.2015 / 16:26
1
answer

Reserved word "this"

I would like an explanation with an example if possible, about the reserved word this in Java, I did not quite understand it.     
asked by 31.07.2014 / 03:34
2
answers

What is the difference, in practice, between Session and Application?

I'm studying about Web Technologies , and during my class a topic about concepts involving Session and Application came up. The technology covered during class was C# . I did not quite understand the differences between them...
asked by 27.11.2015 / 16:35