Tagged Questions
2
votes
3answers
482 views
Checking “instanceof” rather than value using a switch statement
Is there some syntax (other than a series of if statements) that allows for the use of a switch statement in Java to check if an object is an instanceof a class? I.e., something like this:
switch ...
8
votes
8answers
711 views
How important is it to learn makefiles? [closed]
I work in c++ mostly as a hobby (I'm still in school and therefor don't have a real job). The IDEs generate the makefile for me and so I'm wondering if it's worth learning how to make them myself. By ...
70
votes
15answers
4k views
Why do memory-managed languages retain the `new` keyword? [closed]
The new keyword in languages like Java, Javascript, and C# creates a new instance of a class.
This syntax seems to have been inherited from C++, where new is used specifically to allocate a new ...
6
votes
3answers
695 views
What are the most common programming mistakes PHP programmers make in Java?
I am more practiced in PHP than in Java, and when I use Java I find myself looking at it from a PHP perspective. This can cause trouble, so I'd like to know, what are the most common programming ...