Skip to main content

All Questions

Tagged with
78 votes
4 answers
55k views

Dependency Injection: Field Injection vs Constructor Injection?

I know this is a hot debate and the opinions tend to change over time as to the best approach practice. I used to use exclusively field injection for my classes, until I started reading up on ...
Eric B.'s user avatar
  • 1,249
67 votes
1 answer
21k views

What are these different Java versions for?

I am just about to start my Java journey, ( I've already dabbled in C++) but I am getting really confused about all the different versions of Java: JavaSE JavaEE JavaFX etc. Can someone explain these ...
Patryk's user avatar
  • 1,269
63 votes
6 answers
32k views

Is object pooling a deprecated technique?

I am very familiar with the concept of object pooling and I always try to use it as much as possible. Additionally I always thought that object pooling is the standard norm as I have observed that ...
user10326's user avatar
  • 1,830
35 votes
2 answers
37k views

Selecting a JAX-RS implementation for a new project

I'm starting a new Java project which will require a RESTful API. It will be a SaaS business application serving mobile clients. I have developed one project with Java EE 6, but I'm not very familiar ...
Fernando Correia's user avatar
18 votes
5 answers
76k views

Java web application folder structure

As a beginner to J2EE, I have recently started developing my own project from scratch using the Core of J2EE : Servlets & Jsps. I could not evaluate whether my project folder structure is right ...
srk's user avatar
  • 365
12 votes
2 answers
61k views

What is the difference between Enterprise Java vs Core Java? [duplicate]

I have some experience in programming in Java but wondering if someone could explain what is the difference between Enterprise Java vs Core Java? Someone asked me a question on whether I use core-...
kapricanon's user avatar
10 votes
3 answers
35k views

How to reduce size of jar file?

I dont know how to reduce the size of jar file. When we normally code in Java Swing the jar file is created, is there any way to reduce the size of jar file? I can't remove the images and other stuff ...
Rick's user avatar
  • 213
9 votes
4 answers
3k views

Is your company thinking of transitioning from java to another technology? [closed]

As every Java developer knows, Oracle bought Sun and the future of java looks quite unclear, specially since Oracle wants to monetize the JVM. Java as a language has also been stale in the last few ...
Augusto's user avatar
  • 1,032
8 votes
3 answers
3k views

When, how and why should one upgrade (Java) frameworks?

Short summary as introduction: We are a small Java web development team, creating applications using various frameworks and libraries like JSF, Hibernate, Seam, all together deployed in JBoss AS. ...
Volker's user avatar
  • 826
8 votes
2 answers
17k views

How to remove duplicate exception block code

I have good number of Service and DAO classes which has the same set of 30 line exception code block which gets repeated and it shows up in Code Duplication report. The approach which I can think of ...
dosakiller's user avatar
7 votes
2 answers
2k views

exact answer for “what is j2ee?” - job interview [closed]

I'd like to ask if someone of you knows the exact meaning of JEE. That's because a collegue of mine was asked this question in a job interview, and was "unable to answer properly"... to speak with ...
javatutorial's user avatar
7 votes
1 answer
9k views

Log4j logger per class vs logger per application

I am stuck at understanding a concept related to Logger creation, especially in the context of Java EE. In my experience, I nearly always used one logger per application, with few cases when I needed ...
XMight's user avatar
  • 185
7 votes
2 answers
5k views

Why Java does not have a framework like Rails? [closed]

I am a Ruby on Rails developer and I like its simplicity and rapidness. On the other hand we need to use Java for some projects that we develop for our clients. My question is why (pure) Java does ...
xaph's user avatar
  • 187
7 votes
3 answers
554 views

How will writing the transaction part in Java benefit the security of the application, when all other parts are being written in PHP?

A friend of mine while working on a PHP application asked me to write one part of the application in Java. The part that involved transactions. He said it will be better to write this portion in Java. ...
Suhail Gupta's user avatar
6 votes
4 answers
3k views

Why do almost all Java jobs (postings and from recruiters) say J2EE rather than the newer JEE versions? [closed]

I'm still fairly new to Java but have definite comfort now working within the framework I am used to which would mainly be focused on Spring, Hibernate and JEE 6. It seems like every time I talk to a ...
programmx10's user avatar
  • 2,087

15 30 50 per page
1
2 3 4 5
7