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
5
votes
1answer
712 views

Books on improving JEE web application performance and responsiveness [closed]

Does anyone know of any good books on this topic? I did search on amazon but ones that I found are pretty old publications.
5
votes
4answers
470 views

Javadoc usage on real projects

I'm wondering if the Javadoc is using on real projects, what your experience says about it?
3
votes
3answers
561 views

Should I create inner class here or leave as is?

Folks, I have two separate classes. One of them makes http requests/receives response to/from a server and the second one converts received JSON objects into my models (separate classes). I'm thinking ...
1
vote
4answers
3k views

how to learn Java [closed]

This question I am asking because I couldn't find any source which gives complete overview of java development. I just want to know where java technology currently in market & what is preferable ...
27
votes
5answers
24k views

What is the difference between all-static-methods and applying a singleton pattern? [duplicate]

I am making a database to store information about the users of my website (I am using stuts2 and hence Java EE technology). For the database I'll be making a DBManager. Should I apply singleton ...
4
votes
1answer
671 views

Do the benefits of Resin/Quercus outweigh the overhead?

Lately, I've been looking more and more into Resin + Quercus as a technology to develop an application of mine. The reason I started looking into it was that this application has high reporting needs,...
-1
votes
2answers
1k views

“Build your own website” - Developing a CMS with Vague Requirements on a Tight Deadline [closed]

I'm a Java developer in charge of making a product which allows clients to "build their own site". I've spent a lot of time looking into Liferay, as I don't have any experience in building CMSs, and ...
46
votes
5answers
17k views

As a C# developer, would you learn Java to develop for Android or use MonoDroid instead? [closed]

I'd consider myself pretty well versed in C#. It's my language of choice at the moment, and it's where basically all my professional experience lies. Still, I'm puzzled by the existence of the ...
3
votes
1answer
190 views

Legal aspects of Java specification implementations in other programming languages

I am planning to implement an official Java specification in a different programming language. Would this be a copyright violation? Hypothetical examples: a JMX "wrapper" library for C++ which can ...
10
votes
2answers
3k views

design pattern for unit testing? [duplicate]

I am beginner in developing test cases, and want to follow good patterns for developing test cases rather than following some person or company's specific ideas. Some people don't make test cases and ...
43
votes
10answers
22k views

Is there any reason to use “plain old data” classes?

In legacy code I occasionally see classes that are nothing but wrappers for data. something like: class Bottle { int height; int diameter; Cap capType; getters/setters, maybe a ...
4
votes
8answers
2k views

Advantages and possible drawbacks of using Java for cross-platform development vs. .NET? [closed]

If I were to begin writing an application using Java with the intention of porting it to other platforms with little or no modification, would it be wise to consider using the .Net framework instead? ...
10
votes
4answers
510 views

Arguments againts checking-in binary files into SCMs

I work for a company that primarily builds Java applications and I'm trying to convince everybody to stop checking-in binary files (dependencies and final products) to SCM. They know it is a bad ...
9
votes
4answers
10k views

Java abstract class naming

Example: You create an abstract class for Ajax actions. Different Ajax actions will all extend this class. Problem: Do you name the class AjaxAction or AbstractAjaxAction? When you create ...
6
votes
3answers
256 views

Is the ASF going to continue supporting all their java projects in the future?

As you all know ASF quit the JCP and the things between them and Oracle are not going so smooth. Not only that, Oracle is cooking some enterprise level JVMs. With all of these happening, I think it ...
3
votes
2answers
4k views

What is ant build file and maven build file?

Can somebody please tell me in simple words what exactly is ant build file and maven build file?
5
votes
4answers
301 views

Copyright issues with encryption algorythms

I'm developing an application for Android/Java. This application is a kind of password manager, so I'm storing encrypted passwords under the hood of a master password. There are a number of encryption ...
6
votes
2answers
5k views

Abstract classes in package structure

I have an abstract class that will have many implementors. There are, of course, many places to put abstract classes in a Java package structure. Should the abstract class be in the same package as ...
3
votes
4answers
1k views

Why do some projects not use generics

I've been looking at a number of OSS java projects and a number of them still have not adopted generics. They're using raw types (e.g. List foo) instead of generic types (e.g. List<string> foo)....
0
votes
2answers
2k views

Is JSF and JPA worth learning? [closed]

I'm attending a company sponsored training event for JSF and JPA that crams 10 days of training into 5 days. I plan on getting all that I can out of the class, but there is no "final exam".
4
votes
1answer
571 views

Should I use a single platform for common services or modularize them?

I am designing a suite of web applications that have the same base functionality. That is, they all will know how to create and operate on widgets. The differences will be in their target audience and ...
19
votes
10answers
9k views

What do Java developers think of Scala? [closed]

I've noted that IDE support is nowhere near as good, but the language itself supports functional programming idioms much more cleanly.
6
votes
7answers
615 views

Long Keywords like `function` and `namespace`

In many English-based programming languages like C++ and JavaScript, there exist long keywords like function, namespace, exception (in OCaml languages) and such. Do you think shorter keywords like ...
7
votes
8answers
676 views

Would you still use Java in your next project, despite the whole mess in JCP

It seems that there is a whole mess around current JCP. Quite of number of highly respected guys like Doug Lea, Tim Peierls had quit JCP. Reference : Is JCP dead? and Final results of the JSR ...
21
votes
11answers
16k views

Which Continuous Integration framework do you use and why? [closed]

There are quite a few different Continuous Integration (CI) frameworks out there and I'm wondering which is the most popular. Which frameworks have you used at firms where you work? Is there any ...
11
votes
4answers
21k views

Which Java based web ui framework to use? [closed]

Wicket Click GWT Vaadin As I understand them, these frameworks all enable gui components to be created using java (with all its benefits) without having to do lots of html/javascript. As well as ...
12
votes
4answers
2k views

What would you think about a new Java persistence tool, that's not really an ORM? [closed]

Persistence in Java Over the past years, I have gathered experience in the field of persistence abstraction in Java, using concepts such as EJB 2.0, Hibernate, JPA and home-grown ones. They seemed to ...
1
vote
5answers
1k views

Php: Whats my next step? [closed]

So in college I started learning Php, mostly starting with the Larry Ullman books. I got a job at a company after, where I was able to learn some stuff from the higher up guys. Since then, I've done ...
1
vote
3answers
507 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?
5
votes
1answer
327 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. ...
2
votes
5answers
580 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 ...
14
votes
10answers
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 ...
5
votes
5answers
838 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 ...
5
votes
9answers
12k 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 ...
6
votes
3answers
1k 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 ...
49
votes
7answers
22k 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 ...
67
votes
7answers
142k 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 ...
28
votes
5answers
18k 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. ...
7
votes
5answers
3k 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 ...
2
votes
4answers
385 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 ...
176
votes
16answers
125k 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 ...
37
votes
6answers
10k 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 ...
11
votes
3answers
7k 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....
7
votes
8answers
1k 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,...
25
votes
14answers
13k views

Why do we study Java at university? [closed]

Java is often found in academia. What is the reason behind that?
24
votes
1answer
13k 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 ...
169
votes
10answers
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 ...
13
votes
6answers
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 ...
20
votes
7answers
18k 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 ...
7
votes
2answers
599 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 ...