Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 247363

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.

4 votes

Static members and finalize( )

There is nothing special about static members here. The finalize method is called on an object when the object is being garbage collected. An object is being garbage collected when the object is no lo …
Bogdan's user avatar
  • 3,660
1 vote

JVM run-configuration launcher for production?

e.g. settings-prod-run-configuration-1.properties, settings-prod-run-configuration-2.properties, etc); start your application on production using a script that sends the appropriate parameters to the java
Bogdan's user avatar
  • 3,660
3 votes

Is the Model in Spring MVC the same of MVC pattern?

Check out the {@link Model} interface for a Java-5-based interface variant that serves the same purpose. …
Bogdan's user avatar
  • 3,660
4 votes

Am I looking at multithreading the wrong way? (Java)

I want to add one thing. Although the existing answers mention this, they do not expand on it: what's difficult in concurrency is not just the interactions between threads (wait, notify, locks, etc), …
Bogdan's user avatar
  • 3,660
1 vote

Is it good practice to use try/catch like Python in Java?

When doing I/O in Java, you will find you have to deal with a lot of exceptions, which is somehow normal given the many ways that could fail (Java has a lot of checked exceptions, but even in other languages …
Bogdan's user avatar
  • 3,660
1 vote

design points calculation based on rules defined in table

Before thinking about possible patterns, you should think about how to apply this thinking into code: if date range is between 1932 - 2010 then points will be 20 ( 1932 ) + 10 ( this range is cove …
Bogdan's user avatar
  • 3,660
1 vote

How, why or when would you use your own data structure instead of Collections Framework?

Java is a generic language and as such you will find implementations of the data structures that are suitable for, let's say, 99% or the use cases. … You need to box these to Integer or Long to use the Map in Java. Kevin Cline mentioned this in his answer. If you have a Map of a few million items stored in memory, every bit counts. …
Bogdan's user avatar
  • 3,660
2 votes

How to write a proper class to connect to database in Java

There are various ways to connect to a relational database to store and retrieve information. Depending on your needs you can go with a low level implementation or a higher one. You could directly us …
Bogdan's user avatar
  • 3,660
3 votes
Accepted

REST service as an application server for 2000+ client machines. Is it a good idea?

This is an open ended questions with lots of possible responses that depend on what you are trying to do. Nevertheless I'll add a few things as an answer, since a comment won't be large enough. Th …
Bogdan's user avatar
  • 3,660
1 vote
Accepted

Using Map to pass query parameters in DAO

It's over engineering or just paranoia ;p ? I don't think it's either. Yes, a map is a generic data structure but it's also the first thing you reach out for when you need key-value or param-valu …
Bogdan's user avatar
  • 3,660
2 votes
Accepted

Architecting Service, Manager and Model classes for concurrency in a web application

There isn't one correct answer for any of the questions you have asked. Architecture, concurrency, performance, programming languages, etc, it's all a matter of trade-offs. Experience is the thing tha …
Bogdan's user avatar
  • 3,660
5 votes
Accepted

Mental model for working with linked list

As I understand your post, there are two questions here. One is how to build a mental model of a linked list. The other is how to deal with all of the checks for null. If you want a simple model to t …
Bogdan's user avatar
  • 3,660