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
7answers
3k views

Costs of Switching to Java [closed]

I'm a C# dev and I have plans of starting to develop apps targeting Android, which of course means Java. I have heard good things about Mono for Android and the idea of reusing my skill set is ...
7
votes
2answers
1k views

Implementation of communication between packages (Java)

I'm making a project with 5 packages. The packages can communicate with each other by sending Messages to a central MessageQueue in the Main package and that MessageQueue takes care of all the ...
3
votes
1answer
297 views

Apache Wave API

I'd like to create an application based around Apache Wave. Where can I learn more about working with Apache Wave and/or the API for a locally running instance? At the moment, the extent of what I ...
16
votes
4answers
12k views

Command line options style - POSIX or what?

Somewhere I saw a rant against java/javac allegedly using a mix of Windows and Unix style like java -classpath ... -ea ... Something IMHO, it is no mix, it's just like find works as well, isn't it? ...
13
votes
6answers
19k views

Automatic source code generation — good idea or potential nightmare? [duplicate]

In response to my question regarding Java source code generation, I received this answer warning me about potential maintenance problems: mixing auto-generated code always pose a risk of someone ...
2
votes
5answers
1k views

Is imperative style programming (say with Java/C) more error prone than something more declarative [closed]

I know programmers tend to get defensive with their paradigms and tools that they use. But in your experience, with the most generic, typical pieces of code that you see with Java or C++ or C, is the ...
0
votes
3answers
2k views

How much better is Apache Solr than its non-Java competition? [closed]

How much better is Apache Solr than its non-Java competition? Is it so much better than other solutions, e.g. this one (Sphinx with PHP API) or Zend_Search_Lucene that it would be worth suggesting ...
4
votes
2answers
1k views

What do you think of an interpreter written in Java? [closed]

I am currently working on the implementation of a new programming language, for fun. I realize that most languages never become popular, but I still want the language to have a high-quality ...
3
votes
3answers
361 views

Questions for Architecture with Ruby and Java [closed]

I am in the research phase of a project that needs to make use of 3rd party libraries that are in Java so I am stuck using Java to at least a small degree. I am considering implementing Ruby as the ...
1
vote
3answers
244 views

What process/guidelines should be followed, when I am about to deprecate a few methods from my service classes in Java?

My team plans to deprecate a few methods from a specific library. I do not want to simply remove them, but dont want to return results either from the mehtods that are to be deprecated. What are the ...
28
votes
9answers
23k views

Why was Scala not implemented with C or C++

Does anybody know why was Scala implemented in Java and .NET instead of C or C++? Most languages are implemented with Cor C++ [i.e Erlang, Python, PHP, Ruby, Perl]. What are the advantages for Scala ...
19
votes
4answers
7k views

Why does the Java collections APIs not have a last method? [closed]

This is for ordered collections e.g. java.util.List. Why did the language designers not include a last method? The only reasons I can think of are: ambiguity when the collection is empty (return null ...
1
vote
1answer
303 views

Questions and Concerns About Using Java/Tomcat and Apache

I am having to use Java due to needing one backend library. Is it still considered good practice to set up Apache as the front-facing server and have Tomcat behind it? I am spending a lot of time ...
4
votes
1answer
213 views

Approaches that cater for poor connectivity

First off some background info My company has a software as a service model where people log onto our servers and do work. In order to support that application we have a utility application that ...
0
votes
1answer
631 views

What are some good JAIN SLEE related books?

Could you recommend some good reading materials related to JAIN SLEE? Or Java in Telecommunications in general.
27
votes
5answers
16k views

Is programming in Python faster than in C, C++ or Java? [closed]

There's a widespread belief among programmers that the more dynamic and loosely typed the language, the more productive the programmer will be in it. Guido van Rossum wrote about programming ...
1
vote
1answer
416 views

Good extension name for a war file with source

Is there a name for a Java Webapp's war that includes the source code? We will be using a webserver that accepts Java Web Projects with source code) uploaded into the docroot folder, so docroot/admin....
2
votes
1answer
1k views

Hibernate building HQL queries

I just read hibernate reference and they say that you should use constans for HQL queries. However that is not always possible, for example if you do search function and have 10 criterias (not jpa ...
0
votes
2answers
111 views

Correct way to handle sample logins or test accounts

In my JSP web application, I want to redirect sample users to a different page from the real users. Currently we do something like if((user.getName().equalsIgnoreCase("Sample")) ... This is (a) ...
18
votes
10answers
9k views

Why are inheritance and polymorphism so widely used?

The more I learn about different programming paradigms, such as functional programming, the more I begin to question the wisdom of OOP concepts like inheritance and polymorphism. I first learned ...
15
votes
5answers
24k views

When is it appropriate to use a bitwise operator in a conditional expression?

First, some background: I am an IT teacher-in-training and I'm trying to introduce the boolean operators of java to my 10th grade class. My teacher-mentor looked over a worksheet I prepared and ...
1
vote
5answers
229 views

New to a project , how to deal with it?

I just joined a team who has been working in a project for over a year and a half, there's a lot of docs to read (specs, requirements etc..) , and project's repository is full of branches and tags ...
4
votes
4answers
887 views

Is the synchronized keyword,still used/needed in java?

Is the synchronised keyword still required (ignore backwards compatibility, I'm thinking in terms of writing new code, today) or should we all be using the features available in the Concurrent and ...
6
votes
6answers
5k views

Programming languages differences and efficiency, does it matter?

I am fairly new to programming, I have studied in computer science for 3 years at college, but as you know, school is only 2% of what really makes one a fully-fledged programmer. I have a lot of ...
11
votes
4answers
608 views

How will closures in Java impact the Java Community?

It is one of the most talked about features planned for Java: Closures. Many of us have been longing for them. Some of us (including I) have grown a bit impatient and have turned to scripting ...
11
votes
3answers
8k views

When to deprecate and when to delete in Java

As part of a refactoring effort or just ongoing development, a particular method or maybe an entire class may become obsolete in some sense. Java supports the @Deprecated annotation to indicate that ...
5
votes
4answers
3k views

What is a good pattern for combined caching and reinitialization?

I have a situation where I have three requirements: Lazy initialization - don't create the collection until asked for it Caching - keep the collection in memory on the object Reinitialization - be ...
16
votes
9answers
3k views

How do you learn to program? [duplicate]

Possible Duplicates: I still can't figure out how to program? I'm graduating with a Computer Science degree but I don't feel like I know how to program I don't known if you guys have ...
0
votes
1answer
676 views

logical subsystem & physical subsystem

I've done a google search on both of them, can't find much information. I was wondering what is a logical subsystem and physical subsystem (in an object-oriented system)? Also why would it be useful ...
0
votes
1answer
156 views

Testing activities carried out in an OO development project

Does anyone know the testing activities carried out in an Object-Oriented development project that uses an incremental approach to development and delivery?
37
votes
17answers
19k views

How can I feel more confident about my programming skills? [closed]

Programming isn't alien to me. I first starting doing markup (HTML, now please don't laugh at me) when I was 12 and a little bit of BASIC when I was 13 (I knew much about Flowcharts, Pseudocodes at ...
74
votes
10answers
82k views

How many lines per class is too many in Java? [closed]

In your experience, what is a useful rule of thumb for how many lines of code are too many for one class in Java? To be clear, I know that number of lines is not even close to the real standard to ...
8
votes
3answers
11k views

Why does Java's String class not implement a more efficient indexOf()?

Following the below question on Stack Overflow https://stackoverflow.com/questions/5564610/fast-alernative-for-stringindexofstring-str I got to wondering why it is that java (6 at least) not use a ...
100
votes
6answers
150k views

Stack and Heap memory in Java

As I understand, in Java, stack memory holds primitives and method invocations and heap memory is used to store objects. Suppose I have a class class A { int a ; String b; //...
7
votes
3answers
313 views

Quick update of what's new in Java in the last 5 years? [closed]

It's been 5 years since I worked with Java, but I'm in the job market again and there seem to be more Java positions than C/C++ where I live now. Are there any resources to quickly come back up to ...
11
votes
7answers
8k views

Structured programming versus OO programming

I am making a presentation that shows the differences between structural and object oriented programming and I want to illustrate why people need OOP with an example where applying OOP concepts will ...
6
votes
3answers
2k views

Does reflection in Java make its functions “first class”

I am always hearing people talk about how Java does not support first class functions, that it is an advantage you get from functional languages, the only way to simulate it in Java is through the use ...
3
votes
1answer
3k views

Are there any alternatives to Hibernate Envers 3.6.2.Final?

I'm currently evaluating Hibernate Envers 3.6.2.Final; an auditing module part of Hibernate. As far as I am in my evaluation, I feel a little disappointed by Envers. I would expect much more from it ...
5
votes
3answers
411 views

What reading is recommended for an experienced Java/SQL Developer moving to Apache/Tomcat, Postgres, Hibernate [closed]

I am taking over management and development of a website developed in Java using Hibernate and Postgres, running on Apache/Tomcat. I am an experienced Java developer, and have experience in Ruby on ...
17
votes
9answers
3k views

Will Java catch up with C#? [closed]

Today I posted a question asking about which language C# or Java would be better for me to study. I had some great answers. One thing that came up was that perhaps Java is now rather behind C# with ...
1
vote
2answers
264 views

I need quick start to Java, Apache, and Java web based apps to use JasperReports

Sorry, it is NOT duplicated question, just read it please, I'm totally new to Java world, I'm a .NET developer, and I have a good exprience in ASP.NET. Now I have a task to make a demo for ...
2
votes
5answers
471 views

Senior project environment selection

My 2 friends and I are preparing our senior project idea for next year. I need some of different ideas while deciding the base environment of the project, especially from software developers/engineers ...
3
votes
8answers
3k views

Is it necessary for Java programmers to learn some C/System programming?

I've read a blog(in Chinese only) in which the author had jeered at Java programmers who know little about C and system programming. The author illustrated how he had found the deep reason of a Java ...
5
votes
1answer
2k views

Architecture Review Guidelines for Java/JEE project

We're going to do a complete review of a Java/JEE based application. This includes an architecture review, code review and platform hardware review. While we're a bit aware of code review techniques, ...
19
votes
3answers
16k views

Differences between “Java OOP” and “Pythonic OOP”? [closed]

I started with ActionScript 2.0 and then went on with Java. I have learned, or at least used, a bunch of languages since then, including Python (probably my favorite). I'm afraid that my style of ...
2
votes
1answer
121 views

How to lock items when we do check out in commerce applications

I have a specific requirement. Lets say we have 3 items and a user has selected all 3 items to buy. I need to lock the 3 items (meaning the other people who want to buy the same items cannot view it) ...
8
votes
5answers
895 views

What are your experiences selling on the Android Market? 1 year on

Follow up to this question So a lot has changed in the smartphone market in the last year (Specifically Androids market share, OS updates and marketplace updates). Given these changes I think it is ...
6
votes
6answers
997 views

Where is the best place to get off my feet in Python programming? [closed]

I have tried to learn C++ and Java before, but the syntax confused me. I definitely will be learning them after, but for now, where is the best place for a guy who has programmed before to learn ...
15
votes
2answers
8k views

Hotswap and alternatives?

Since the early days of my college life I have been using Java and biggest problem that we have is absolutely being less productive than other interpreted languages. All people are sure that java is ...
7
votes
5answers
3k views

Suggest other people's code to study [closed]

What open source Java code would you suggest for me to study? EDIT: I'm interested in the design, simplicity(?), their programming style, logic. EDIT2: The first thing that came to my mind is ...