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
12 views

Which patterns/architecture to apply for “Import Data, Process Data, Export Result”

I was wondering which architecture/patterns to choose for the following problem divided into three steps: Import TestScript Description from File (e.g. .xls, .txt) Process Described TestScript ...
-2
votes
0answers
10 views

How to Use JButtons as the JComboBox render

My application have a JButton and I need to have when I click on the Button a list of Buttons will appear ( as when the JComboBox is clicked ),So thought to have a JComboBox with custom render JButton ...
0
votes
0answers
66 views

Am I approaching this correctly from an OO Perspective?

Ok so I am setting out to consolidate some learning I have been doing. What I am going to do is create a small game relating to a game I enjoy called Persona. For reference a persona you can think of ...
1
vote
1answer
91 views

Should I separate a web api from the webserver?

Lets say I'm building a site similar to this or Quora (or some arbitrary blog-like site). I need a real-time component that will be using web-sockets/long-polling to notify the user of new posts, ...
0
votes
2answers
57 views

SOAP message testing

I am working in Scala/Java. I'm testing the messaging infrastructure of a part of my system that I did several years ago with CXF and Java. More specifically, I'm re-writing the specification of the ...
0
votes
2answers
313 views

Is it necessary to memorize every line of code when it comes to game development?

I am currently following along a youtube tutorial here and from what I understand we are starting out by creating an engine to run the game. Should I be able to implement all of this by myself without ...
1
vote
5answers
418 views

Fixing bugs in other peoples code

I'm working with another programmer and we are always having issues with refactoring or changing each others code. Recently I had to fix a bug, but I pushed the changes before notifying him. He was ...
1
vote
3answers
144 views

Filtering a List

I will try to simplify my problem. Let say I have a collection (more specifically a List) with different types of elements, for explanation purpose let say we have objects "Person" with different age ...
-2
votes
0answers
37 views

Learning Android programming [on hold]

I have tried to learn Android with Eclipse for a month, and im trying to learn how to make a strategy game, and need to learn how to make days pass and you get different messages. Is there any ...
1
vote
1answer
33 views

How to allow multiple plugins to provide data for multiple aggregation processes?

I'm working on a Java project in which we want to have data collection plugins that collect data to be processed by one or more data aggregation modules. The plugins will all written in-house. Say for ...
0
votes
0answers
123 views

Is Tomcat smart enough to make use of multi core processor?

I am developing a tool using servlets. In order to make something to work way faster I have to do multi-threading in Java. My question is can the Tomcat server do it behind a scene? On another ...
-3
votes
0answers
51 views

Fastest means of communication within a WIFI network [on hold]

I'm looking for a way by which two devices could communicate multiple zipped files within the network. I'm planning to do it as a http service call using a server, but it might be slow when compared ...
0
votes
0answers
44 views

Java swing - fading in a component by alpha setBackground, correct synchronization [migrated]

I am making my first GUI, for a project of mine. I made the first page, login for it. Now I have a login button which should let the controller know when it's clicked and pass the username and ...
0
votes
0answers
26 views

docker-izing a classical db-based webapp - single or multiple containers?

i have a classic java webapp. its composed of a database (postgresql), a servlet container (tomcat) and my code (deployed on tomcat as a *.war file). i want to package/deploy it using docker (mostly ...
-2
votes
0answers
54 views

Good way to improve java [on hold]

I just finished my first year in computer science and have learnt java as a core part of my course. So far I am familiar with the following: loops, conditional statements, objects, basic GUI etc ...
1
vote
2answers
139 views

Do I need to care about 'Thread safety' in java web applications

I have general understanding that what thread safety means , but I don't know much about threads in context of a java webapplication. I am just curious to know that do I need to concern about thread ...
-3
votes
1answer
123 views

Newbie worried about starting java career [on hold]

I'm a newbie student fascinated with java its functioning and its future scope. I've already completed my college but I didn't get a job so currently I'm working as a BPO employee but I haven't given ...
1
vote
1answer
148 views

Java and rest OOP languages - when to use super or this keywords

I have been programming java for like a year or more, and i have always used the this and super keywords. And yesterday my mate read one source of mine, and told me not to over use it unless you are ...
-2
votes
0answers
35 views

Android Studio 0.8 offline guide and tips before creating project [on hold]

I want to learn Android Development and I am thinking of using Android Studio. Just downloaded Android Studio 0.8 BETA. Installed it. Now, I have low bandwidth connection and building an android ...
-2
votes
0answers
30 views

how Java Application without main method (Karel The Robot) [migrated]

I was wondering in the program like Karel the Robot. It does not use main(), but instead instead it used run() method. import stanford.karel.Karel; public class CollectNewspaperKarel extends Karel { ...
0
votes
0answers
20 views

Using delimiter in java Scanner class to read a comma seperated file [migrated]

I am trying to assign values in a file using a comma as a delimiter. The problem arises after the first line, because there is no comma at the end of the first line, so the Scanner is reading the last ...
0
votes
4answers
124 views

Should each method have a seperate JUnit test class?

I am writing JUnit unit tests for my classes. Is it better to have a separate class for each method, or have just one test class for every actual class?
0
votes
3answers
120 views

How should I approach storing single boolean results for a whole table?

I previously asked this question on stack overflow. But have not received any responses that might help me. So I thought I would try here. ...
-1
votes
0answers
32 views

why java standards were opted for android [duplicate]

I am an android developer and was doing some work, just came across this little thing that why the java standard were opted for the android development. There are other platforms too,that was capable ...
-1
votes
6answers
403 views

How does polymorphism help a programmer? [on hold]

I have been trying to understand the importance of the concept of polymorphism in Java, and I understand that it means to use a interface's object to call subclass methods. I've been reading an ...
0
votes
0answers
52 views

Referencing a library in a project in a way that allows dependent libraries to reference classes in them as well?

In this specific case, I'm working with Bukkit and Forge for Minecraft. I have bukkit plugins that reference my bukkit library and forge mods that reference my forge library. Naturally, there are a ...
0
votes
0answers
30 views

Can PhoneGap and RoboVm work in harmony?

The Goal is to make an iOS app using phonegap and java. When writing phonegap plugins that interact with native code (objective-c) would it be possible instead to make it interact with java when using ...
4
votes
3answers
194 views

What is the best use case for selenium?

I've been trying to develop web applications while at the same time creating the testing. I understand unit testing, I can declare a test method and test specific methods in my application. But I ...
0
votes
1answer
64 views

In a REST service project, where should we put code that calls a third party REST API?

My project is organized in layers like Configuration Controller Service Repository Domain Our REST Controller is in the Controller layer. We need to connect to another API via REST calls and I'm ...
-1
votes
0answers
32 views

Implement feedback/progress bar in JSP/Servlets [closed]

I'm changing old PHP code to Java servelets/jsp etc. I want to give the user feedback on the process going on in the back-end, some sort of progress bar. How can that be implemented with servlets? You ...
0
votes
3answers
131 views

What constitutes a good Database System(Java / SQL related) [on hold]

I've given this so much research but still couldn't come to my own conclusion, before continuing this question I would like to give you a rough idea of my current situation. I'm 18 years old and have ...
0
votes
1answer
109 views

What is design pattern/paradigm for ASP.NET web-apps? [on hold]

I don't actually know if my question is correct, but working on a webapp porting from ASP.NET world to Java + Spring platform I came up with this question in mind. Using Spring MVC, the new version ...
-2
votes
3answers
138 views

Trying to understand how MySQL license applies to code I wrote

I have an ERP, coded with Java and the database in MYSQL Community edition. When I was going to sell it to a client he asked me for the sources to my application (with the belief that it is GPLed). I ...
-1
votes
0answers
53 views

Does an Oracle Java Certification expire? [closed]

I was recently told that "older" certifications do not expire, but the "newer" certifications do expire (they didn't clarify the cutoff between newer and older). I have not been able to find anything ...
1
vote
3answers
308 views

Passing data between hundreds of objects in java [on hold]

Currently, I'm working with a group on building a model. This model simulates interactions between many "agents" in a region. Agents can be any entity such as a city, a farmer, a business etc. Each ...
2
votes
2answers
293 views

Why to declare a String (as final) and then use it?

In a typical spring mvc validator class, while inserting an errorCode value in the Errors object, what difference does it make between using a String (props.somefield.req) like so ...
2
votes
3answers
221 views

Duck typing in statically-typed languages

Is it a fair assumption to say that an overloaded constructor for a class can be thought of as a 'duck' for duck typing? Let's say that ClassA has an overloaded constructor, it would stand to reason ...
-3
votes
0answers
19 views

need help with Spring Integration [closed]

I have 3 web applications, client, integration service and let's call it server. I need to pass REST request from client to integration service and then redirect that to server. After that I need to ...
-4
votes
0answers
66 views

Best book to learn OOP in Java if you know C/C++ at beginner level? [closed]

Which is the Best book to learn OOP in Java if you know C/C++ at beginner level? Or What is the best way to learn JAVA and OOP in case one knows C/C++?
1
vote
2answers
225 views

Is “continue” and “break” in loops antipattern/bad practice in Java? [duplicate]

I see the main purpose of continue in programming, it can get you out from the rest of loop steps like: while(condition1){ ... code ... if(!condition2){ continue; } ... code ... ...
1
vote
1answer
50 views

Several enum classes that declare constants with the same names

I'm working on a Java library for sorts for Magic: the Gathering. Well, without going into a lot of detail, in the game there are five different colors of magic: white, blue, black, red, and green. ...
0
votes
0answers
33 views

Web-services REST security clarification

I'm newbie of web services programming and I have some problem to understand how to work authentication/security for REST WS pattern. I had read about OAuth but I haven't understand how it work in ...
-1
votes
0answers
40 views

asynchronous request in spring MVC

i have one scenario. i have one web application in spring and what i need is to display current logged in user.main requirement is achieve this functionality using asynchronous request rather than ...
2
votes
0answers
138 views

How to evaluate JNI approaches with Java and Fortran? [on hold]

Right now we've got about 150k lines of Java broken into two major parts. The first contains an implementation of the algorithms we're hoping to redo in Fortran, and the second has a good chunk of GUI ...
15
votes
12answers
2k views

Why use getters only as opposed to marking things final? [duplicate]

I'm working in a java role after working a couple years in functional programming. Our company was bought by google and I took a java role after the acquisition. Coming back to java as a polyglot ...
0
votes
0answers
34 views

MVC class modeling

I have following requirement and I am trying to design class diagram. This is the first time I am creating class diagram so I would like to get some advice from experts.. :) This is a simple login ...
-2
votes
1answer
90 views

Should I as a junior-programmer pursuit a course in C#, even though I did Java? [closed]

I'm a junior-programmer, and at present I am pursuing a course in I.T. which involves getting to know Java and JavaScript. Should I pursuit a course in C# also? I really like programming, but I had a ...
4
votes
2answers
196 views

What are the key differences between Java's and Python's OOP support? [closed]

The only language I've ever used is Java. I like it a lot but decided it's time to learn another language :) . I'm interested in learning Python. It seems like a good choice because it's partly ...
-2
votes
0answers
28 views

JTree is Only Visible Part of the Time [migrated]

I am trying to populate a JTree from a SQLite data base. When it does show up, the JTree is populated correctly, but is only shows up about half the time. Why would it do this? public class ItemPane ...
5
votes
2answers
283 views

What's the easiest way to comply with open source licenses? [closed]

I'm really confused by all the open source licensing details like "I wrote a web application, which should run on a computer not owned by me. My software uses the library/language xxx. Is this ...