Posts by Geison Santos • 4,428 points
77 posts
-
3
votes3
answers15702
viewsQ: Difference between private final and private final Static for the use of immutability
An attribute when declared with the modifier Static has the characteristic of "propagating its value" by all instances of the class to which it belongs, that is, its value will be the same for all…
javaasked Geison Santos 4,428 -
4
votes2
answers2734
viewsQ: Regular expression to retrieve strings starting with colons (:)
I need a regular expression to retrieve a list of strings starting with the two-point character (":") and ending with the space character or end of parentheses (")"). Example: String texto =…
-
4
votes2
answers508
viewsQ: Implementing Cascade Methods (Cascade) in Javascript
In the book Javascript: The Good Parts, Douglas Crockford explains the concept of cascading method, from Cascade. According to the author these methods are characterized by changing the state of the…
javascriptasked Geison Santos 4,428 -
2
votes2
answers869
viewsQ: Validation with JSF
I want to perform the validation of the form displayed in the image in a different way than the framework requires. The validation would be something like an alert, IE, the user would be informed…
-
3
votes3
answers43625
viewsQ: Regular expression that accepts only numbers and/or letters in Java
How to develop a regular expression that allows a string to have only numbers and/or letters in any position and quantities? Examples: to) 00000a b) 000000000A c) AAAAAAAAA0 d) 1AAAAA1113 and)…
-
21
votes2
answers378
viewsQ: Performance in creating strings in Java
What is the best way to create strings in Java to get better performance? Here are two examples of creating strings in Java: Ex. 1: String str = "string"; Ex. 2: String str = new String("string");…
-
5
votes1
answer1219
viewsQ: What is service granularity?
What is service granularity in SOA? What is the difference between fine and coarse granularity?
-
2
votes1
answer865
viewsQ: What is SOA and what are the advantages of its use?
I read some definitions on the web, but none managed to reach a level that allows me to define clearly what it is and what the advantages of SOA within a company. UPDATE Some of the definitions…
soaasked Geison Santos 4,428 -
9
votes2
answers9432
viewsQ: Creating app that runs in the background
Some famous apps, among them Facebook, Whatsapp, Hangouts, use a service running in the background that does not end even with the disconnection/ connection of the device. My question is how to…
androidasked Geison Santos 4,428 -
14
votes1
answer542
viewsQ: Is Android an OS or a stack software?
The definitions given by Google for Android "Android is an open-source software stack for a wide range of mobile Devices and a corresponding open-source project led by Google." and by American…
androidasked Geison Santos 4,428 -
1
votes4
answers22316
viewsA: Subtract two TIMESTAMP and receive the value in minutes on Oracle
Through the answers given by my colleagues I have arrived at my own answer. It is not the best or most elaborate, but rather a synthesis, a simplification and that has been posted to the knowledge…
-
6
votes4
answers22316
viewsQ: Subtract two TIMESTAMP and receive the value in minutes on Oracle
Like subtrair two fields TIMESTAMP and receive the value in minutos in the oracle? DATAFIM - DATAINICIO = 2880 minutos (ou dois dias)…
-
6
votes1
answer1447
viewsQ: Differences between Log4j and SLF4J
What are the vantagens and desvantagens of each one? They can be usados simultaneamente in the same project?
-
4
votes2
answers3171
viewsQ: Show only month and year in Primefaces Legend
Like remover os dias of the primefaces? I tried the configuration below, but the days are displayed when the component is redeveloped. <p:calendar id="dataTeste" pattern="MM/yyyy" /> Here’s…
primefacesasked Geison Santos 4,428 -
14
votes2
answers2787
viewsQ: What is syntax sugar and how does it work?
I have seen in some blogs the use of that term and would like to know: 1) The real meaning of this expression and; 2) How a syntax sugar as the example below in the language java? for (Foo foo :…
-
1
votes1
answer2214
viewsQ: Displaying error messages in a web application
I have developed a simple web application to study some concepts related to Servlet among others. I mapped the file web.xml of my application to display a página de erro in case an exception occurs.…
-
10
votes2
answers4750
viewsQ: What are functional interfaces?
What are functional interfaces in Java? This concept already existed or emerged from version 8 of Java?
-
2
votes2
answers1830
viewsQ: Performance in Java repeat loops
What is the difference in performance between the three types of ties highlighted below. List<Foo> list = new ArrayList<Foo>(); for (int i = 0; i < list.size(); i++) { //CODE } for…
-
27
votes1
answer13799
viewsQ: What is the importance of implementing the hashcode method in Java?
How important it is to implement the hashcode method in Java? How the hashcode method differentiates two objects?
javaasked Geison Santos 4,428 -
27
votes3
answers11642
viewsQ: What is the definition of the term coupling?
What is the meaning of the terms high/low coupling in object-oriented systems development or object-oriented programming (POO)?
-
23
votes3
answers8791
viewsQ: What is the difference between checked (checked) and unchecked (unchecked) exceptions?
Hello! I have some questions about exceptions, which are they: What is the main difference between checked and unchecked exceptions? In which situations should I use each of them? What are good…
-
40
votes3
answers15467
viewsQ: What is Boilerplate code?
I have noticed the frequent use of the term in some forums and I was wondering what its meaning and where it came from.
-
3
votes3
answers2057
viewsQ: How to format textfield with bold in Ireport?
I used the toolbar and applied the bold for the fields, which visually changed, as can be noticed in the image, but in the generated pdf the formatting is not displayed. I am using version 4.0.1 of…
-
1
votes1
answer1611
viewsQ: How to use Google Maps with JSF
I need to use Google Maps in a JSF application. Primefaces offers the Gmap. I also found the Gmaps4jsf. Which of the two approaches is the best, or if there are others, which one will bring me more…
-
1
votes2
answers129
viewsA: How to set up Mysql in Cloudbees
As mentioned by the user @user6053 the configuration needed to use Mysql in Cloudbees consists of the configuration of three files basically: cloudbees-web.xml (the file must be created in the…
-
2
votes2
answers129
viewsQ: How to set up Mysql in Cloudbees
I need to set up Mysql on Cloudbees, how can I do this? Someone who has already done this can help me set up this connection to be used on Jboss?
-
11
votes2
answers2940
viewsQ: Draw path on the map
How do I draw a particular path using the Google Maps V2 API? What I want is something more or less like this: I inform the street A and the street B and get the drawing of the path between these…