All Questions

3
answers

Why use get and set in Java?

I learned in college a while ago that I should always use getters and setters to access values in an object and I heard it is for security. p> So I ended up always using and seeing other people using, until I started programming Android and I...
asked on 14.11.2014 / 05:55
3
answers

Why in the C language array [6] equals 6 [array]?

Note: Question I saw in the SO in English , but I found it interesting to post here (because we do not have many C questions yet): Because in C language, does this code print "true"? #include <stdio.h> int main(void) { int reais...
asked on 29.01.2014 / 16:11
2
answers

What does # mean in the name of some languages?

Maybe it's the simplest question possible, but what does # (sharp) mean in the name of the C # and F # languages?     
asked on 05.01.2016 / 14:15
3
answers

Javascript Analysis and Design

When working with object-oriented languages such as Java and C # we have a whole process of analysis and design available that helps us know how to design the application in order to write more cohesive, less coupled and easier to maintain codes...
asked on 28.05.2014 / 01:48
3
answers

What is the real advantage of using a CallBack and what is thread / multithread?

It has a lot of explanation of what is callback by the net and even a few sparse examples, but nothing that explains in practice and in detail a really important use (I did not find it). I already understood a bit of how to use and even mad...
asked on 02.01.2015 / 22:48
4
answers

Check Old Game winner

The algorithm teacher asked us to write a code to play a simple old game in Java. And I already have everything ready, but I'm not too happy with the solution I've got to validate who won the game. I've done a series of if and elseifs to chec...
asked on 08.10.2014 / 13:48
2
answers

Using the Java Scanner

I was doing an exercise for the university using the class Scanner and something unusual happened, watch the code. for(int i = 0; i < 11; i ++){ //problema(esta pulando a escolha de um dos jogadores, precisamente o jogador 1) Sys...
asked on 28.08.2014 / 13:40
3
answers

Limit timestamp January 19, 2038

How can this bug be resolved? echo date('c', mktime(1, 2, 3, 4, 5, 2038)); Result 1970-01-01T00:00:00+00:00     
asked on 25.11.2015 / 10:37
3
answers

What is the difference between static and self in PHP?

What is the difference between static and self ? Exemplify with situations that justify their different uses. What does this have to do with late static binding ?     
asked on 19.02.2014 / 03:02
1
answer

When does Stack Overflow occur?

A question that has everything to do with the name of this site. We know that one of the most commonly used examples for demonstrating the execution stack of a program is recursion. A recursive function must have: stop condition and recursio...
asked on 01.11.2015 / 18:13