Skip to main content

Questions tagged [java]

Java is a high-level, platform-independent, object-oriented programming language originally developed by Sun Microsystems. Java is currently owned by Oracle, which purchased Sun in 2010.

Filter by
Sorted by
Tagged with
1 vote
3 answers
511 views

Is this book a reliable source for beginning Java EE? [closed]

Core Servlets and Javaserver Pages: Core Technologies, Vol. 1 (2nd Edition) Can I rely on this book to learn Servlets and JSP,or is there a better book out there I should be reading instead?
Mahmoud Hossam's user avatar
5 votes
1 answer
346 views

MVC for our application?

There are some issues about how to manage our program designs and programming styles. I was assigned to find a solution to write reusable code - though, the programming team does not follow the rules. ...
Salivan's user avatar
  • 373
2 votes
5 answers
584 views

What are the common mistakes when you are a good coder in C and PHP and you start coding in Java ? What are good tips when switching? [closed]

What apsects of Java are the most diificult to learn when coming from such a background? What common mistakes do people make ? What are the top timesaving and produtivtity increasing tricks ? If you ...
NimChimpsky's user avatar
  • 4,661
14 votes
10 answers
1k views

Help me catch up on what I've missed since Java 1.4.2 [closed]

I am about to start my first professional career position as a software developer, and I'm likely going to be writing a lot of Java code. I don't know that much about what specifically I'll be ...
DGH's user avatar
  • 456
5 votes
5 answers
858 views

Solutions to problems that .NET can solve better than Java (or vice-versa)

To me it seems these are two different platforms that address similar enterprise(but not only) problems. I'm interested however in problems that Java can solve better than C#/.NET or C#/.NET can solve ...
Maxtor's user avatar
  • 349
6 votes
9 answers
17k views

What are the hardest parts of the C++/C#/Java programming languages? [closed]

Just wondered what are the features of the three main programming languages which show you are an 'expert'? Please exclude 'practical' skills such as indenting. Am I right in saying for C++ the most ...
user avatar
6 votes
3 answers
3k views

Should a unit/integration test that may result in an infinite loop have a clear assertion?

Unit: A multithreaded unit reads data of a queue and processes it, sending it off to another queue. When the last item is processed (null value found) the process stops. Test: Place a set of known ...
Michael K's user avatar
  • 15.6k
55 votes
7 answers
30k views

What is wrong with Java's generics? [closed]

I have seen several times on this site posts that decry Java's implementation of generics. Now, I can honestly say that I have not had any issues with using them. However, I have not attempted to make ...
Michael K's user avatar
  • 15.6k
66 votes
7 answers
148k views

How is IntelliJ better than Eclipse? [closed]

I know there have been questions like What is your favorite editor/IDE?, but none of them have answered this question: Why spend the money on IntelliJ when Eclipse is free? I'm personally a big ...
Nicole's user avatar
  • 28.2k
29 votes
5 answers
21k views

Is the Java package name convention flawed? [closed]

We're all familiar with the Java package name convention of turning the domain name around. I.e. www.evilcorp.com would, by convention, chose to have their java packages com.evilcorp.stuff. ...
Martin Algesten's user avatar
9 votes
5 answers
4k views

Where did Java go wrong on the client? [closed]

Not talking about the recent Java/Oracle debacle here, but something I've been wondering recently. When I first started programming, Java was the big thing client-side, however these days you hardly ...
Groky's user avatar
  • 217
2 votes
4 answers
393 views

Should I continue learning a language if in the meanwhile I became interested in another language/platform? [closed]

I started learning Java a couple of months ago. I also wanted to become more exposed to linux so I installed ubuntu and started working with Java since then. In the meanwhile however I became more ...
user avatar
202 votes
14 answers
141k views

When are Getters and Setters Justified?

Getters and setters are often criticized as being not proper OO. On the other hand, most OO code I've seen has extensive getters and setters. When are getters and setters justified? Do you try to ...
39 votes
6 answers
11k views

Good example of complex code using TDD [closed]

What would be a good example of the use of TDD in large, real-life, complex, projects? All the examples I've seen so far are toy projects for the purpose of a book or a paper... Can you name an ...
Xavier Nodet's user avatar
  • 3,724
14 votes
3 answers
9k views

Is there a good reason to use Java's Collection interface?

I've heard the argument that you should use the most generic interface available so that you're not tied to a particular implementation of that interface. Does this logic apply to interfaces like java....
Fil's user avatar
  • 669
7 votes
8 answers
2k views

Examples of Java APIs that demand an action sequence

As part of a research I'm working on, I'm looking for public APIs that only work correctly when you apply a certain sequence of actions on them. For example, the java.nio.channels.SocketChannel class,...
Oak's user avatar
  • 5,265
25 votes
14 answers
16k views

Why do we study Java at university? [closed]

Java is often found in academia. What is the reason behind that?
Goma's user avatar
  • 3,853
28 votes
1 answer
17k views

Why does Java exit with success after an uncaught exception?

Any time a Perl, Python, C++ or Tcl program halts with an unhandled exception, those language runtimes take care to register a non-zero exit code for the process. Even Eclipse-based programs return 1 ...
James's user avatar
  • 391
170 votes
10 answers
24k views

Mono is frequently used to say "Yes, .NET is cross-platform". How valid is that claim? [closed]

In What would you choose for your project between .NET and Java at this point in time? I say that I would consider the "Will you always deploy to Windows?" the single most important technical decision ...
user avatar
13 votes
6 answers
10k views

What would you choose for your project between .NET and Java at this point in time? [closed]

You are just starting a new project and you have these two technologies to choose from, Java and .NET. The project you are working doesn't involve having features that would make it easy to choose ...
user avatar
21 votes
7 answers
20k views

Is Java (still) the cross platform language of choice? [closed]

When I started using Java in the nineties, it was all "Write once, run anywhere!" from day one. That was probably all true then and I was a part of the choir as well. I am not sure what to think ...
Martin Wickman's user avatar
7 votes
2 answers
736 views

Why would anyone need this java syntax?

One day while trawling through the Java language documentation, as you do, I found this little beauty lurking within Double: 0.25 == 0x1.0p-2 Now, obviously (!) this means take the number ...
Gary's user avatar
  • 24.4k
14 votes
8 answers
5k views

In Java, what are checked exceptions good for? [closed]

Java's checked exceptions have gotten some bad press over the years. A telling sign is that it's literally the only language in the world that has them (not even other JVM languages like Groovy and ...
Brad Cupit's user avatar
11 votes
5 answers
3k views

What are you thoughts on GWT? [closed]

Since I'm learning Java in this period and I just finished with the tutorials I think I'm ready to start contributing to a project (since I know from experience this is the best way to really learn). ...
user avatar
25 votes
17 answers
16k views

What are some good assignments for an introductory course, to reach today's students? [closed]

I periodically teach an introduction to programming course using Java. I want to give my students some exciting assignments that they can relate to or find interesting. At the very least, I want ...
Macneil's user avatar
  • 8,223
11 votes
10 answers
20k views

Java or C++ for university CS courses?

I'm in the throes of getting myself enrolled in school to get a CS degree. The school I am looking at actually offers both Java- and C++-based for the introductory software development courses (object-...
Philip Regan's user avatar
  • 1,504
7 votes
8 answers
18k views

What is a "wrapper" program?

Where I work, employees use a third-party desktop program for their clients. This program saves data to a flat file. My colleague wants to write a Java program that uploads that flat file to a remote ...
user6950's user avatar
1 vote
3 answers
332 views

Mod lines in Java code

Often in C code (and some other languages as well) I have seen a section in the top-level comments for mod lines. These include the date a modification to the file was made, the user who made the ...
Michael K's user avatar
  • 15.6k
12 votes
6 answers
8k views

What are the Top Developer Productivity Tools/Plugins for Java in Eclipse?

I personally use CodeRush in Visual Studio 2010 to do refactoring, write code faster with templates and generally navigate my code 10 times faster than stock VS. Recently, I've been working on ...
Ryan Hayes's user avatar
  • 20.1k
12 votes
5 answers
2k views

How is the JVM and Java's WORA different from other high level languages?

In the Java world, we often talk about the JVM, and when Java was new it had the supposedly killer feature of "Write Once, Run Anywhere." From the way people talk and write, this seems different from ...
Eric Wilson's user avatar
  • 12.1k
4 votes
2 answers
10k views

What sort of Design Patterns do you use in Android Development? [closed]

I have been developing on Android for a couple months now, and building upon one in house program I found the scalability to be lacking. I have that gut feeling that if I applied some OO Design ...
AndrewKS's user avatar
  • 1,083
21 votes
9 answers
3k views

How to teach Exception Handling for New Programmers? [closed]

How do you go about teaching Exception Handling to Programmers. All other things are taught easily - Data Structures, ASP.NET, WinForms, WPF, WCF - you name it, everything can be taught easily. With ...
Kanini's user avatar
  • 2,258
5 votes
9 answers
9k views

Are Java applets worth learning? [closed]

I'm on the way of learning Java myself. I find most of texts giving emphasis to Java applets. I got confused about the importance. Is it something widely used? Do I need to spend more time on it?
jineesh joseph's user avatar
5 votes
6 answers
4k views

Write once, run anywhere. Is it still relevant? [duplicate]

Since Oracle bought Sun and Apple have decided not to continue developing their JVM, is the "write once and run everywhere" model still relevant or has web services/SOA reduced it to an edge case?
GrumpyMonkey's user avatar
8 votes
3 answers
5k views

Jython and JRuby vs. Groovy (and Java) [closed]

I am very interested in Python for programming on the JVM, and I've worked in Java and Ruby (not JRuby) a lot, and to a certain extent in Groovy. What are the limits to the Java-Jython and Java-JRuby ...
Dan Rosenstark's user avatar
9 votes
6 answers
6k views

Should I learn java for mobile application development or will C# just do?

I'm looking forward to delving into the .NET framework but most mobile applications seem to be developed in Java. I'll most probably be targeting the less pricier phones like Nokia and motorolla not ...
user avatar
27 votes
5 answers
4k views

I want to start using TDD. Any tips for a beginner? [closed]

I never used an automated test mechanism in any of my projects and I feel I'm missing a lot. I want to improve myself, so I have to start tackling some issues I've been neglecting like this and trying ...
Mike42's user avatar
  • 932
24 votes
4 answers
6k views

Which algorithms and data structures should a developer absolutely know? [closed]

I want to be a successful enterprise Java developer. With what algorithms and data structures should I be well versed? What books would you recommend to me? To be a successful Java developer, do I ...
Chankey Pathak's user avatar
6 votes
1 answer
2k views

AGPL-compatible license

I am using a java library licensed under AGPL3. However, I would like to license my own work as BSD, such that my code could then be integrated in proprietary projects if one strips the library. Will ...
Dan Cirnat's user avatar
4 votes
1 answer
323 views

CMP Entity Beans as a "naive" ORM solution

I was browsing through this talk about "Historically Bad Ideas" over the history of Computer Science, and found an interesting presentation about the rise & fall of the Java Enterprise initiatives....
Humberto's user avatar
  • 143
6 votes
2 answers
4k views

How would you name import and export functions in Java? [closed]

I have a Java class that handles import and export of data. It started out as a simple private void export() { } private void import() { } Of course, I wrote the export first, committed it, and then ...
configurator's user avatar
  • 2,786
14 votes
4 answers
2k views

Is Java to Linux what .NET is to Windows? [closed]

Is Java becoming the de facto standard from Linux application development in the same way .NET is the standard for Windows application development? If not why not?
patrick's user avatar
  • 1,028
6 votes
2 answers
1k views

How much logging should I do at production for SQLExcpetions?

I'm writing a small database-centric application in Java Swing that will be used internally in a small company. I haven't much experience with developing production-level applications. I don't use an ...
Jonas's user avatar
  • 14.9k
7 votes
6 answers
3k views

What unit test frameworks exist for Java?

I've used TestNG and JUnit. What other frameworks are out there? What makes them special and/or different from the rest?
codeyoung's user avatar
  • 2,056
4 votes
2 answers
346 views

Do you consider mainframe as part of large application deployments? [closed]

When you are setting up your system landscape for large and/or multiple application deployments, do you consider mainframe? If not, why not? If so, what factors are you considering. If you take a ...
Jé Queue's user avatar
  • 3,927
1 vote
10 answers
26k views

Java Vs .NET Vs Oracle(DBMS), Which technology is for Long Term Career? [closed]

I want to know about Which language is best for long term career and How? Which language should I choose among Java and .NET Platform or Should I choose Oracle like DBMS Language (SQL/PLSQL)? I am ...
Kuldeep Chand's user avatar
15 votes
8 answers
2k views

How do you encourage your organization to move from Java to Scala? [closed]

Has anybody's organization started the migration from Java to Scala? If yes, how do you do that? What can I do to encourage my colleagues to do the same?
nanda's user avatar
  • 559
61 votes
18 answers
86k views

Why do people still say Java is slow? [closed]

For a long time in SO and in other places Java has the reputation of being slow. From jokes to many comments in questions and answers, people still believe Java is slow based solely on experience with ...
40 votes
25 answers
109k views

Will Java still be relevant in 5 years? [closed]

Will Java have the same importance it had in the past, or it will be less relevant than nowadays?
9 votes
10 answers
14k views

Switch from C# to Java, which "gotchas" I should care?

I may have to switch to Java for new project. I have very little knowledge about Java, because I've mainly studied and used C#, and I'm afraid of the differences between these two language/platform ...

1
95 96 97 98
99