Questions tagged as 'java'

7
answers

How to protect the source code?

I'm thinking of making an application to sell, I'd like to know how to protect my source code to keep my software safe. I have seen that the Java bytecodes, stored in the .class file are easily converted back to .java using the...
asked by 25.02.2014 / 16:07
3
answers

Is there a difference between reporting the size of the loop condition or outside it?

If I have an array or collection in a Arraylist and need to traverse its elements, I occasionally need to make use of loop repetition. Ex: for(int i = 0; i < arrayList.size(); i++){ //iteração... } or in the case of a simple...
asked by 13.09.2016 / 15:45
1
answer

Why and when to use enum in Java?

Someone learning the language, novice or experienced, may never have come across Java enumerations. I have read on several occasions that they are useful, for example, to implement singleton standards with more guarantees of visibility between...
asked by 25.02.2014 / 23:17
4
answers

What are the advantages of Lambda Expressions present in Java 8?

Java 8 will be released soon ( March 2014 ) and the feature of this version are Lambda expressions . Could anyone describe, as the question says, what this feature will actually add to the developers and, if possible, any example code co...
asked by 13.12.2013 / 12:29
4
answers

What do the ellipses in the parameters of a method mean?

I was seeing some methods of the javax package classes and some of them have a signature similar to this: protected void doInBackground(String... params){} What does this " ... " mean??     
asked by 08.01.2015 / 07:22
3
answers

Difference between Date, sql.Date and Calendar

What is the difference between the java.util.Date , java.sql.Date and java.util.Calendar classes and in which situations is the use of one or the other recommended?     
asked by 10.04.2014 / 15:21
5
answers

Java Library for Brazilian Electronic Nota Fiscal (NFe)

I have been developing a business management system for some time. I need to add to it the functionality of electronic invoice issuance in the Brazilian standard. Is there a well-tested and preferably free and open source Java library that wi...
asked by 12.12.2013 / 18:13
4
answers

What is the purpose of @Override?

I have some doubts about @override , I read somewhere and I vaguely remember the rewriting issue, but what is it? And what's the use? As it applies to a JAVA code. Is there any other language?     
asked by 30.06.2014 / 16:37
4
answers

What are the differences between Generic Types in C # and Java?

I've studied Java for a long time and I'm well acquainted with the working of generic types in this language: I know there are only compile-time, type type erasure end of it (so that at runtime this information is not available), and I have...
asked by 21.03.2014 / 10:57
1
answer

DLL library access made in Delphi from Java

I am developing a tool for biometric recognition using the SDK provided in DLL format, developed in Delphi. For DLL access from Java, I'm using JNA. The digital template (the most important part) is an object that refers to this section (in D...
asked by 06.03.2015 / 17:09