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

-1
votes
0answers
16 views

storing a crl in distributed systems

I am designing an offline Certificate authority (CA) software in java, where server are working in a distributed system. I want to implement a CRL database which will be replicated at every client ...
-2
votes
0answers
43 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
1answer
18 views

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

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
16 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 ...
-1
votes
0answers
45 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 ...
0
votes
2answers
123 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 ...
-2
votes
1answer
112 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 ...
-2
votes
0answers
23 views

Only zeros as assignment values in a simpleKMeans clustering [on hold]

I am writing a code that uses traffic data, stores it in an OD Matrix, and displays it as a heatmap. I am trying to cluster (k-means for now) it but for some reason my instances' assignments are only ...
1
vote
1answer
138 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 ...
-1
votes
0answers
24 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
114 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
117 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
31 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
401 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
48 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
29 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
188 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
62 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
28 views

Implement feedback/progress bar in JSP/Servlets [on hold]

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
127 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
107 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
136 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
306 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
0answers
39 views

Process XML into excel in JAVA [closed]

I want to read a big XML file, make some formation, add new data and then write into excel file. The XML is big, (~80Mb). I started to read with XOM java class. My problem is how can I store the data ...
2
votes
2answers
285 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
212 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 ...
-2
votes
0answers
17 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
62 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
222 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
49 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
32 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
35 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
135 views

How to evaluate JNI approaches with Java and Fortran?

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
87 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 ...
-2
votes
0answers
32 views

How to get result by mongodb with hadoop by mapreduce in java [closed]

I have only two weeks experience in hadoop. I am using Mongodb as a database where there is a collection named as "video" the video collection structure is as given below. I am using a mongodb with ...
0
votes
0answers
52 views

Making Games With C++ [closed]

Hey Is It Possible To Make A Game With C++ ? For Example An RTS 3D Game Or First Person Shooter. If Not Can It At Least Compile Files To Be Used In The Game Scripting?
4
votes
2answers
194 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 ...
20
votes
2answers
1k views

Do modern languages still use parser generators?

I was researching about the gcc compiler suite on wikipedia here, when this came up: GCC started out using LALR parsers generated with Bison, but gradually switched to hand-written ...
0
votes
1answer
79 views

Confusion about instance in an interface

I'm trying to learn OGSi framework (Equinox distribution). I have registered my service, but I'm confused about a piece of code that I've copied: IAgendaService service = new AgendaService(); What ...
2
votes
2answers
186 views

What happens if I close an InputStream that is passed as an argument?

I have read that Java is pass-by-value, and I've been reading about it in this question at StackOverflow, but I'm still a bit confused, regarding the close() or shutdown() methods in various classes. ...
0
votes
2answers
105 views

Java Packaging with shared classes among multiple applications [closed]

I recently inherited a code base which followed the packaging strategy of first splitting the code based on feature followed by layer which yields things such as: ...
0
votes
1answer
68 views

Differences between Direct, Composition, Aggregation, and Temporary Association

I am looking to take my java certification very soon, and I have a question about the different types of associations described in the official oracle guide book. The book describes the 4 as the ...
-1
votes
4answers
127 views

Why can you have statefulness inside a static class in java?

I was playing around with Java today and I read about static inner classes. Why can you have 'statefulness' inside of a static inner class. For instance: class outerClass { static class ...