Skip to main content

All Questions

2 votes
3 answers
10k views

Why doesn't Java automatically initialize local variables with its default value like it does with arrays, class variables, etc.?

public class A { public static void main(String[] args) { boolean[] test = new boolean[1]; System.out.println(test[0]); } } prints false, as specified by the Java spec. ...
uuu's user avatar
  • 856
4 votes
1 answer
32k views

Why would one prefer C# (ASP.NET MVC) or Java (JSP) instead of PHP for web applications/projects [closed]

I'm wondering, why would one (consider it not just a single developer, but a company) prefer C# or Java for web applications? What's their considerations regarding the question. I mean, a company, has ...
Ivan Yonkov's user avatar
9 votes
8 answers
848 views

Past If statements Arrays, loops... Now what?

I gave up on programming a little over a year ago when I kept hitting this wall. I am revisiting the subject because I want to create basic Android application. But I feel that my limited knowledge ...
user76625's user avatar
13 votes
2 answers
3k views

Advantages and disadvantages of structuring all code via classes and compiling to classes (like Java)

Edit: my language allows for multiple inheritance, unlike Java. I've started designing and developing my own programming language for educational, recreational, and potentially useful purposes. At ...
jcora's user avatar
  • 1,481