|
Are there any things that once can do ignorantly that can prevent a java web application from being cross platform? (windows/linux/mac)
Tools I am planning to use are java/spring framework/hibernate
Started by mrblah on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Not honoring case-sensitivity in filesystem
In addition to what Dan Dyer said:
calling executables... .
Using Runtime.exec() Using sun.* classes (this may cause portability issues with non-Sun JVMs) .
Using native libraries.
Hard-coding file separators/paths.
|
|
What are the things that Java (the language and platform) got categorically right? In other words, what things are more recent programming languages preserving and carrying forward?
Some easy answer are: garbage collection, a VM, lack of pointers, classloaders...
Answer Snippets (Read the full thread at stackoverflow):
When it first concepts
Apart from the....
I don't think Java would initially have interested me without GC.
Whatever Java borrowed was the right thing from javaGarbage collection.
You can say the same from C++.
The previous language.
|
|
I read a lot of blogs and see people all the time talking about bad things in the java programming language; a lot of them are about annotations and generics that were added to the language in 1.5 release. What are the things in the language or the API...
Started by Alon on
, 43 posts
by 39 people.
Answer Snippets (Read the full thread at stackoverflow):
I like Java a lot, but mainly two things bug me:
No unsigned data Java so slow, but those five are the things that irk me most from a strictly code development, they are not implemented as "boxed....
Multiple files and libraries.
|
Ask your Facebook Friends
|
I am trying to learn Java, I was reading a tutorial that said something like this:
while (N <= 0) { TextIO.put("The starting point must be positive. Please try again: "); N = TextIO.getlnInt(); }
It seems like when you ask the user for input it suspends...
Started by John Isaacks on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Yeah() { return N != null; } public int getResponse() { return N.intValue(); } }
I fully recomend this book: Java.
But yes, synchronous I/O is typical of Java.
For asynchronous I/O, there is java.nio.
|
|
I would like a form a list of what nagging things of Java are history and by what feature of Scala has it been replaced.
I must admit I am new to Scala, so I cannot contribute much. But I feel, this list will be helpful for me as well as others to fully...
Started by ajay on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Scala is ....
Null is gone (mostly is for free.
Further, Java has Regular Expressions .
Mind you, actors may be a better model than Java threads , but I would be surprised if actors couldn't be implemented in Java.
Than Java.
|
|
Hi all. I'm working on a small java game which is a sort of clone of the 1995 game Theme Hospital. I've recently been working on the GUI and the Level structure now I have the path finding and grid working. My current way of "building stuff" consists ...
Started by Relequestual on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
A data driven solution.
Composition can sometimes keep things more flexible.
Practice, and it probably goes against Java conventions (I came to Java from dynamic languages always the answer.
|
|
Hi all,
I have a client connecting to my server. The client sends some messages to the server which I do not care about and do not want to waste time parsing its messages if I'm not going to be using them. All the i/o I'm using is simple java i/o, not...
Started by jbu on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Not sure of the implications of never reading from a buffer in Java -- I'd guess that eventually the OS.
|
|
I have a recursive algorithm which steps through a string, character by character, and parses it to create a tree-like structure. I want to be able to keep track of the character index the parser is currently at (for error messages as much as anything...
Started by Andrew Harmel-Law on
, 9 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
In Java, arrays are also passed by reference rather than copied like.
It's kind of a hack, but sometimes I use an AtomicInteger, which is mutable, to do things like is a variation on this method...
|
|
How much of the Java SE api is actually written in Java itself?
Started by Michael on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It's pretty much as you'd expect - things which everything else is written in Java....
Of it is Java, but there are some low-level things that must be native code (graphics and file; there's also the OpenJDK source for 6 and 7 ).
|
|
Hi Stackoverflowers!
I am planning to write the SCJP exam soon, and I wonder if that will be helpful to get Graduate/Junior Java Programmer job. Exam seems to be easy to pass for some people.
What is the minimum scope of knowledge to start thinking about...
Started by Registered User on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In another two months, I took the exam, passed it, and was hired as a full-time Java intern within two months after, but there's nothing wrong with....
I started learning Java and after four months bought a textbook to study for the exam.
|