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.

learn more… | top users | synonyms

0
votes
0answers
3 views

IntelliJ Idea shortcut key main method in Java?

If someone can provide a link or file of keyboard shortcuts to develop in Java for IntelliJ Idea that would be awesome as well. Thanks in advance.
0
votes
0answers
24 views

Is repeating links to the same class in a single javadoc comment a bad practice?

I'm currently writing an API and its documentation. For example I have something like this: public interface Event { } public interface Process { } public interface EventProcessor { /** * ...
10
votes
2answers
388 views

What did Rich Hickey mean when he said, “All those interfaces kill your reuse!”

In Rich Hickey's thought-provoking goto conference keynote "The Value of Values" at 29 minutes he's talking about the overhead of a language like Java and makes the statement, "All those interfaces ...
-2
votes
0answers
25 views

Hi all I am doing project in java but dealing with settings.per file error in eclipse indigo

Hi all I appreciate your post reply that i already seen in another FAQ so i need your help now for doing my project in java actually i am having one agency project so i wish to run it asap but i got ...
4
votes
1answer
466 views

What do I need for Java Socket programming?

I am trying to learn Socket programming in Java to make a game I created playable via network. I have never done much network programming so the subject is a bit confusing. In php I use apache to test ...
1
vote
1answer
406 views

Handling error message for a Spring MVC login form

This can apply to many error handling scenarios, but I'm curious about how to do it in a login scenario. Given this Spring controller method: @RequestMapping(value = "/account/login", method = ...
1
vote
3answers
378 views

What are your thoughts on the Oracle Master (old Sun Certified Java Developer) Examination? [closed]

Has anyone done the Oracle Master (old SCJD) Examination? What are your thoughts on this examination? Is it worth taking it? Not really from the point of learning anything (as I doubt I will), but ...
2
votes
5answers
699 views

Which Java technologies do you consider to be dead? [closed]

OK, this could be construed as flame-bait, but that is not the intention. Nor is it about a holy war between one technology choice and another. Rather, what advice would you give to a new Java ...
9
votes
4answers
460 views

Why are nested loops considered bad practice?

My lecturer mentioned today that it was possible to "label" loops in Java so that you could refer to them when dealing with nested loops. So I went home and looked up the feature as I didn't know ...
0
votes
0answers
34 views

Matrix Pattern Recognition Algorithm for a 2D space

I have a picture that I elaborate with my program to obtain a list of coordinates. There is a matrix represented in the image. In an ideal test I would get only the sixteen central points of each ...
2
votes
1answer
51 views

How to convert String input with milliseconds to Date

I have a java method which needs to convert a Date from one input String format to another. The input and output formats must retain all millisecond detail, as this is for a process tracking solution ...
9
votes
3answers
389 views

Is this pattern bad?

I notice that when I code I often use a pattern that calls a class method and that method will call a number of private functions in the same class to do the work. The private functions do one thing ...
15
votes
6answers
824 views

A programming language that allows you to define new limits for simple types

Many languages like C++, C#, and Java allow you to create objects that represent simple types like integer or float. Using a class interface you can override operators and perform logic like checking ...
5
votes
3answers
257 views

Programming style in Perl

I work in Java so basically I use OOP paradigm during coding. I am about to start working in Perl and I was wondering what is the paradigm that Perl developers follow. In wiki it mentions that it ...
1
vote
1answer
172 views

Should I obtain a licence from Oracle before developing Java software? [duplicate]

Should I obtain a licence from Oracle before developing Java software? I'm in the preliminary planning stages of developing a server on top of the the Hadoop/Java platforms. I'm not much at all ...
4
votes
4answers
424 views

Is there a recommended order to take the Oracle Java EE certification exams?

I recently passed the Oracle Certified Professional, Java SE 6 Programmer examination. Now, my boss would like me to take "the next step" to broaden my competence. I tried to explain that there is no ...
19
votes
8answers
9k views

Can we use Java for commercial use?

The Java is GPL license (reference from wikipedia). I am not sure I can use it in in commercial projects. I already have a website written in Java and I plan to use this for commercial use. Is that ...
-1
votes
0answers
87 views

Cuda based GPU programming using Java, C# or C++? [closed]

We are trying to do something using Cuda based GPU programming. However, we do not quite sure which programming language is the best to fit. For example, is Cuda SDK only compatible with C++, or we ...
1
vote
1answer
70 views

What would be an optimal Java media engine to use for an animation-based game? [closed]

My colleagues and I have been planning on development for a while now, and we're curious as to what we should use to provide media into the game. Everything will be composed of picture-based ...
0
votes
1answer
45 views

Controller JSP - no view

Most people say do not use JSPs. But what if I have a JSP that does not show anything, it only acts as a controller? Why would I do that? Because we do not need to redeploy complete webapp to make a ...
5
votes
1answer
286 views

Attachment handling for web application with Jackrabbit

I need to manage attachments on my Spring web application and I thought to use an open source repository. My app it's a job approval system using J2EE / SPRING 3 Framework and postgress DB to allow ...
0
votes
1answer
66 views

How to find method and class usages along git repositories

We got some code in a git repository that's used along different projects (with git different repositories), the problem is that we got now so many different projects that's difficult to track which ...
4
votes
5answers
747 views

Switching Programming Languages [duplicate]

I'm a senior level Delphi developer looking for move into either C# or possibly Java roles. I have around 8 years of development experience of which pretty much all of it is in Delphi, I have very ...
1
vote
0answers
73 views

Is there any efficient Java solution/Algorithm to find values in a text field based on key string with delimiter? [migrated]

Is there any efficient Java solution/Algorithm to find values in a text field based on key string with delimiter? Example: Rules: I. Key: username Start-Delimiter: ; End-Delimiter: ; Need to find ...
0
votes
0answers
4 views

Eclipse cannot display variabile data in debug “Expression watch” [migrated]

In debug mode the eclipse stopped showing the variabile data in expression watch few days ago out of nowhere. But it shows all the data in .this in the Expressions tab here is the pic:
1
vote
0answers
36 views

Dependent Object Serialization

What's the recommended way to serialize dependent objects, especially when objects are being freshly constructed (to avoid malicious byte streams, or whatever)? For example.... After creating a ...
0
votes
1answer
80 views

Java Design Question

I am considering the options for designing a system in java which accepts data files from different systems applies some transformations to the data, concats data from multiple files to produce some ...
0
votes
2answers
73 views

Should a complex unifying class be doing computation?

I have a large application in Java filled with independent classes which are unified in a PlayerCharacter class. The class is intended to hold a character's data for a game called the Burning Wheel, ...
2
votes
2answers
110 views

Migrating Web based projects from Java to PHP

At our work place after hours of coding, testing and QA we have successfully added a couple of software tools in our product line. We specialize in web based software solutions so in order to tap on ...
1
vote
2answers
605 views

Principal Component Analysis in Java [closed]

I'm searching a java library for performing "Principal component analysis"; till now I found on the web some routines but they are too old and may not work with latest JRE...
-2
votes
1answer
71 views

Programming advises needed? [closed]

Sorry if i am posting in the wrong place , this is my first time at this site ... Today is my 7 months since i am learning Java , I have completed 3 books for Java till now 1.Java Software Solutions: ...
0
votes
0answers
8 views

remove duplicates in array using method [migrated]

Im trying to remove duplicates numbers from an array using method but, unfortunatly I could not solve it yet and this what I have done so far.. //method code public static int[] ...
-1
votes
0answers
36 views

GIS and Java Career [closed]

I have been a GIS Analyst for over 10 years and currently studying java (50% through the course). My plan is develop GIS applications manly focused towards open source solutions. I would like to ...
0
votes
2answers
79 views

Best way to structure a Git repository for Maven

I need some advice on how to structure our projects in Git. We use Java and Maven is our build tool. Maven kinda assumes all of your projects have a common ancestor eventually. Maven can also be a ...
55
votes
7answers
29k views

How is IntelliJ better than Eclipse?

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 ...
1
vote
2answers
125 views

Load Balancing for Listeners

How should we load balance listeners to a 3rd party service? e.g. We need to read gtalk messages via XMPP Listener and build an application using the interactions of the user with a chatbot. In such ...
-2
votes
0answers
63 views

Is Maven Convention over Configuration?

Does Maven works through "Convention" or is it configurable by any means? I have been following placing the code under main folder and placing the tests under test folder. Is there a way to rename ...
-3
votes
1answer
89 views

Casting from string to integer and the vica versa [closed]

I am trying to cast in Java from string to integer and the other way around but the compiler is complaining about this. My question is: Is this the matter of compiler or Java programming language ...
2
votes
1answer
43 views

Java MVC extra classes

I have a simple MVC project. My current packages: gui controller db domain I want to put extra classes which I will use, e.g. md5 hashing, email validator (methods which I will use in more than ...
0
votes
0answers
53 views

Maximum flow and minimum cut undirected graph java

I need to implement an algorithm where I find the maximum flow and the minimum cut of an undirected graph and I cannot really find an algorithm for this. I have looked at the Ford Fulkerson algortihm ...
1
vote
1answer
29 views

MorphAdorner Licensing confusion

I want to use the MorphAdorner library available free for commercial use. But it uses several other libraries that restrict commercial use (like Gate etc). Can I use this library in my application?
-4
votes
3answers
778 views

Is it worth taking OCPWCD or OCPBCD exams after clearing up SCJP? [closed]

If one has successfully passed the SCJP 1.6 exam, what exam from the following two is it worth taking, if any ? OCPWCD (Web Component Developer certification, formerly known as SCWCD) OCPBCD ...
4
votes
2answers
2k views

Book to prepare for Java SE 6 OCP exam? [closed]

Does it matter that the SCJP study guide by Sierra and Bates are for SCJP and not OCP? I've also been told that they spend too much time on unnecessary topics. Any better recommendations from anyone ...
9
votes
6answers
13k 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; ...
3
votes
3answers
133 views

Threads or ThreadPool? Fixed or Dynamic ThreadPool?

I have a java program which listens on a port for input. Based on Input, it calls a webservice and then returns a success/failure back to the client program. I fork a thread for each client ...
1
vote
1answer
48 views

Name of this algorithm (Create binary image)

Some days ago I saw in this site the algorithm below to convert color images to binary images and I used it in my application (with some small changes). However, I need to know what is the name of the ...
2
votes
2answers
105 views

Entity to DTO Usage

Been trying to come up with a flow for a basic tiered web application, and have been reading conflicting information online. What I'm trying to figure out is if there is an advantage to still using ...
0
votes
1answer
78 views

How to store other file types within a file type using Java (cross-platform)

I'm writing a program that runs/plays songs and videos. I need there to be two options, one where it stores the addresses of the files/media and another where it stores all the dependencies in its ...
-2
votes
0answers
59 views

JavaFX Book | Learn JavaFX More In Depth [closed]

JavaFX is a constantly changing thing, but appears to have been mostly standardized by Oracle releasing most of it as open source (and the rest to follow very shortly), and JavaFX becoming part of the ...
-3
votes
0answers
72 views

Is it Wise to disconnect the ui layer from the backend in mobile web apps? [closed]

What's the future when it comes to mobile web development? I mean, traditionally, in the java world, we make use of Java EE technologies such as Spring, Hibernate and some MVC framework like Spring ...

1 2 3 4 5 35