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
vote
1answer
23 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?
2
votes
2answers
85 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 ...
-2
votes
0answers
44 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
62 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
vote
1answer
32 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 ...
-3
votes
0answers
26 views

jdbcTemplate.execute(sql) hangs [closed]

I am using a simple piece of code to execute the sql. If the sql executes a long time, then the program will hang on jdbcTemplate.execute(sql) even though the database finished the sql execution. it ...
2
votes
4answers
171 views

Find the count of each word in a string

I am in a search of a better performant algorithm to implement a program, to find the count of each word in a sentence i.e.., a String in the programming sense. I know my algorithm is too basic and ...
1
vote
1answer
73 views

Is there a tool that will list all dependencies of a method in Java?

Say I'm looking at some code and I see: MessageDigestPasswordEncoder encoder = new MessageDigestPasswordEncoder("SHA-512"); Now, in that file I also see: import ...
24
votes
13answers
786 views

Multiple Interfaces in Java - Good or bad

I'm coming out of an interview just now and the interviewer asked me if a Java interface can "extend" more than one interfaces. I was thinking multiple inheritance is disallowed in java so got that ...
-3
votes
4answers
293 views

speed/performance of image processing python vs java vs c [closed]

I have a project in which I take a handful of images and coordinates, and combine them all into a single image based on those coordinates. (so not really image processing, just image ...
1
vote
1answer
35 views

Way to allow inspection of java data model after exporting to file

I've refactored a program to remove its dependency on an sql database by storing all the state in a memory model. However the manager liked the ability to easily inspect the domain state just by ...
0
votes
1answer
35 views

Standard Java Error Reporting

I am currently working on creating a toolkit for work and I've gotten to the point where I'm wondering about error reporting. Basically all of my tools, which consist of a grouping of classes, will ...
-1
votes
0answers
31 views

How do you convert a CSV file into a 2D array in Java or C++ [migrated]

My question title didn't fully outline my question. I have a text file that has many lines of data with each line in the following format: a, date, b, c, d, Username, e, Description a,b,c,d, and e ...
63
votes
18answers
3k views

Is it poor programming practice to pass parameters as Objects? [duplicate]

So, we've got a guy who likes to write methods that take Objects as parameters, so they can be 'very flexible'. Then, internally, he either does direct casting, reflection or method overloading to ...
-4
votes
0answers
59 views

What language / technologies are best suited for a survey? [closed]

My goal is to create an application that acquires some data , do some calculations on them then display some results . I'm having a difficulty related on which language or technology I should use to ...
2
votes
2answers
105 views

MVC framework that uses classes instead of methods for actions

In most MVC frameworks, Controller class contains multiple methods, each representing one action. Then annotations and reflection is used to call those methods appropriately. But from OOP point of ...
-1
votes
2answers
40 views

Beans, DTOs, & Non-Internal Classes as Data in General - Acceptable or OOP-Murdering Antipatterns? [closed]

Am I not understanding encapsulation? What's with all this data out in the line of function-spaghetti disguised as one-method classes fire? Beans and DTOs are everywhere. Isn't it better design to ...
0
votes
2answers
133 views

VPS vs Web Hosting: Which one is good for java web services

I have some questions about VPS and web hosting. As far as I understand, VPS is a virtual machine on which we can do anything as we can do with our local machine. Install software, change settings ...
-5
votes
1answer
53 views

Characters represented the first Java Applet? [closed]

Which of these characters represented the first Java Applet? Mickey the Mouse Duke the Duck Snoopy the Dog Tux the Penguin
0
votes
2answers
38 views

Overriding - Access to Members with Reference Reassignment

I have recently been moving through a couple of books in order to teach myself Java and have, fortunately, mostly due to luck, encountered very few difficulties. That has just changed. I read a ...
-1
votes
0answers
180 views

Is there a reputation that C# and Java is for work while Ruby or Python is for fun? Why? [closed]

I heard this several times online or from colleagues. Many people use C# or Java at work-related project, but prefers Ruby or Python for fun or hobby-oriented projects. For example, in his blog post, ...
0
votes
1answer
127 views

Which Java IDE (if any) is preferred/mandated for professional developers? [closed]

I'm coming from a .NET background here and there are certain tools which most people use. As an example, most organisations I've worked in use Resharper and not CodeRush. This is actually quite ...
0
votes
1answer
96 views

Sorting an ArrayList by a Split Value [closed]

I am attempting to create an list which should be sorted by a particular field in a colon separated string. I have an array of strings with the following values: name1:535 name2:697 After sorting ...
0
votes
0answers
133 views

Storing more than 85000 strings in ArrayList [migrated]

I don't think this question is asked before, there is some clues(google search) that ArrayList can hold any size of data if JVM allows it to. The thing is I need to store some url links in arraylist ...
0
votes
1answer
71 views

Defining a status between last check and now

I have sets of probing data from an internal monitoring tool which represent the availability of different services (databases, webservices and so on). Now my task is to visualize this data and I ...
-4
votes
0answers
97 views

why do Oracle package up Java with the ask toolbar [closed]

The short answer is because they make money (I assume they get commission for every click?). But it devalues the "brand" and annoys everyone who install its. Is their any logical reason for Oracle ...
0
votes
0answers
51 views

Binding 2 Java clients thanks to a node.js server

I've got a node.js server, whose purpose is to let a Java application user first connect to this server. Then a user of the java program, when connecting with this program to the node.js server, is ...
-4
votes
0answers
55 views

Photo facial detection + blurring of faces software development [closed]

So I am doing a little start up with a few other people. Our project requires facial detection + blurring of faces in photos. We are currently using cloudinary but their facial blurring is not good at ...
1
vote
0answers
79 views

Single write, multiple read of stateful objects

Scenario: One data input feed (call this Source) Multiple objects (call these Layer1) read this Source, and analyze the feed. This analysis is stateful. Layer1 objects have configuration parameters. ...
-3
votes
0answers
23 views

best algorithm to retrieve relationship between each two XML consecutive elements

what's the best algorithm that identifies the relationship between each two consecutive elements throughout the reading of the XML file. and What's the suitable XML Java API to do this algorithm ...
-3
votes
0answers
163 views

Simple Algorithmic Interview questions? [closed]

I will be taking some interviews for an intern position. And it will be a telephonic phone screen for around 45 minutes. So I am looking for some simple algorithmic interview questions that I can ask ...
0
votes
0answers
27 views

Java multi catch exceptions errors [migrated]

I've checked this code several times and I cannot figure out why it's spitting back errors in regards to the catch statement. I'm aware that handling multiple exception with one catch clause is ...
1
vote
2answers
136 views

Decimal to 17-bit 2's Complement Signed Number

I am trying to convert decimals, (0.05, -0.28, 25.00, etc), to a 17-bit 2's complement Signed Number. The parameter data I am sending is SysEX Midi Data (to some external Synthesizer). The data ...
0
votes
0answers
58 views

Why is this the case? [migrated]

I was going through an AP Comp Sci practice test and found the following problem: what is the output of: System.out.println("1" + new Integer(2) + 3); (Java) The answer was 123, I am confused as ...
-1
votes
1answer
40 views

ASP.net extended with client side operations [closed]

What is the best way to "extend" my ASP skill set to include more client side orientated actions. I am developing the growing need to do things "faster" , without post backs... I am talking about UI ...
0
votes
0answers
41 views

Sonar Performance - Static inner class of Type Token [migrated]

Sonar says "Performance - Could be refactored into a named static inner class The class DataServiceImpl$2 could be refactored into a named static inner class". paramsClass1.add(new ...
-6
votes
1answer
54 views

Deployment of java web application on internet [closed]

I have developed an web application in java using Apache tomcat server and MS sql database. Its working fine in offline. I want to deploy it online. Apart from purchasing domain name, how to deploy ...
3
votes
3answers
121 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 ...
6
votes
3answers
164 views

Which of these design patterns is superior?

I find I tend to design class structures where several subclasses have nearly identical functionality, but one piece of it is different. So I write nearly all the code in the abstract class, and then ...
-1
votes
0answers
7 views

java script date popup is not working in firfox [migrated]

The following is the function for date selection. The code is working in IE but it is not working in Firefox. The problem coming at selecting a day.iam not able to select a day in Firefox. function ...
-2
votes
0answers
83 views

is it possible to write web applications with java fx? [closed]

is it possible to write web applications with java fx? I heard java fx support full java core functionality and have a better media and graphics support
1
vote
5answers
227 views

The need for adding an interface to every class [duplicate]

My coworker and I are arguing very hard about this topic. He's thinking that every single class should have an Interface that the class implements (also Single-Implementations). He uses this design ...
-1
votes
0answers
83 views

which java web framework is similar to php codeigniter framework [closed]

Would you please let me know a good java web framework for a E-Commerce website, right now the existing php website is based on codeigniter framework and I am planing to convert this php project to ...
1
vote
1answer
387 views

Why does gmail use java? Is there really a advantage over something like php or python? [closed]

Note: I know that none of you (probably) work for google, so this is a lot more of a conceptual question. So yeah, i discovered that Gmail uses java and that got me thinking, Why? I personally never ...
0
votes
0answers
32 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 ...
0
votes
1answer
88 views

Abstract methods being used as static methods in java?

In an attempt to write some generic code I find myself putting, in my abstract class, a method that returns some static information about how the class should be treated. This method doesn't use any ...
4
votes
1answer
248 views

Is it possible to write a code without class methods, globals, and class variables? [closed]

I'm designing my own programming language for fun, and I'm thinking of making it fully Object-oriented (no statics, no globals, no class variables, no class methods), so I need to find a way to ...
-3
votes
0answers
153 views

Choose between focus c# or java? I need motivation [closed]

I have a problem for my study, I need to focus on one programming language. For professional programmers, please give me motivation or the right choice to choose one of them.
0
votes
0answers
80 views

Why isn't this “else” statement working? [migrated]

for (int i = 0; i < charArray.length; i++) { char temp = charArray[i]; if (temp == ONE || temp == THREE || temp == FIVE) { stack.push(temp); } ...
0
votes
0answers
41 views

Categorize websites based on URL [closed]

I am trying to categorize websites based on the URL. I am creating two tables. One of them will contained the URLs captured from the http packets and the other will contain categories such as sports, ...

1 2 3 4 5 35