Questions tagged as 'java'

1
answer

Paging with large amount of data

Thinking about performance, what is the best way to page a large amount of data? I'm currently using a List<Produtos> , saving around 500 products in it, and using subList(min,max) , returns what I need. However, I think t...
asked by 27.04.2016 / 16:28
1
answer

What is Spring MVC?

I'm developing a java web project and I'm using the MVC (Model-view-controller), which is a pattern of software design and I know its function is to separate the representation of user interaction information with it. So my question is what w...
asked by 19.10.2015 / 22:30
1
answer

Polymorphism in Java

Example: // Super classe: Carro abstract public class Carro { String nome; public void andar(){ // anda } } // Sub classe: Fusca public class Fusca extends Carro { public void andar(){ super.andar();...
asked by 13.01.2015 / 16:59
2
answers

How to receive a List (Java) in Javascript using Spring MVC?

I have a web application where the Spring MVC framework is being used. I need to get a List in a Javascript function, but I do not know how best to do this without leaving the code confusing. The Process class has String and Integer attribute...
asked by 24.11.2015 / 20:45
1
answer

Convert date dd / mm / yyyy to yyyy-mm-dd'T'HH: mm: ss

How do I convert a date in the format dd / mm / yyyy to the format supported by sqlite yyyy-MM-dd'T'HH: mm: ss Example: public static String converteStringEmData(String stringData) throws ParseException { SimpleDateFormat sdf = new S...
asked by 11.07.2014 / 20:07
1
answer

What do security modules commonly used on bank sites?

Most banks offer some kind of security module that acts on the client side for access to internet banking websites. Usually they are done in Java and they are usually very annoying to install. What exactly do they do at the technical level? W...
asked by 06.06.2014 / 18:45
1
answer

Tomcat or Jboss / Glassfish?

What requirements should I evaluate to determine which application server will support my application? I know that Tomcat is not a full JEE server, but what defines an application so that it will need to use a server like that? So far all the...
asked by 22.04.2015 / 19:57
2
answers

What makes an object eligible to be allocated on the stack?

Link to the article: link   "The programming language (Java) does not offer the possibility to let the programmer decide if an object should be generated in the stack.   But in certain cases it would be desirable to allocate an object on   ...
asked by 04.04.2016 / 23:27
2
answers

CAST: difference between "(String) arg" and "String.class.cast (arg)"

I wonder if there is a difference between: String a = (String) arg; and cast class: String a = String.class.cast(arg); I once heard that using the static cast class is more performative, is this true?     
asked by 06.07.2015 / 14:20
1
answer

How does the default Java constructor work?

How is the default Java constructor? Is this? public Pessoa(){ super(); }     
asked by 02.10.2014 / 18:16