We’re rewarding the question askers & reputations are being recalculated! Read more.
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)
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
Status closed:yes
Types is:question
Exclude -[tag]
For more details on advanced search visit our help page
Results tagged with Search options user 57792

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.

Is it a good practice to use reflection if greatly reduces the quantity of boilerplate code? Basically there is a trade-off between performance and maybe readability on one side and abstraction/auto …
modified Mar 27 by David Kerr
There is a new hype with the long awaited lambda expressions in Java 8; every 3 day another article appears with them about how cool they are. As far as I have understood a lambda expression is … sugaring in Java? Can I create more powerful and flexible classes or other object-oriented constructs with lambda expressions that aren't possible to be built with current language features? …
modified Jun 23 '16 by Christoph Grimmer-Dietrich
portable, and is harder to debug. Try to improve performance by classical techniques (better algorithms and data structures, optimization, reduced I/O overhead etc.) and Java techniques (JVM tuning). Only … if you have legacy APIs in native code or you need to perform large computation extensive tasks is JNI recommended. See also Item 54: Use native methods judiciously in Joshua Bloch's Effective Java (2nd edition) for a more advised reference. …
modified Sep 11 '15 by Community
web is not that good for the other types of distributed systems. And since you do all these systems in Java or .NET it's easy to also build the web stack on the same platform rather than in PHP. …
modified Jan 8 '15 by m3th0dman
I wouldn't use CountDownLatch in your scenario because it's not reusable. Look at Semaphore or Cyclic Barrier for similar functionality.
modified Dec 12 '14 by m3th0dman
The item field in SuperType2 class is static so there is no inheritance; there is just an ambiguous reference . All fields from interfaces are static and public by default. Java would have been … better designed if static fields and methods can only be accessed through class name and not through a reference; but this is not a major flaw. Since version 8, Java has the diamond problem and multiple …
modified Nov 23 '14 by m3th0dman
Typically they should go in a util or misc package. But for example if you have a class DatabaseUtil it can go directly under db, supposing there you also have subpackages db.model, db.dao etc. for ot …
modified Nov 6 '14 by m3th0dman
ConcurrentHashMap does not use any Lock instances at all. It uses directly the Unsafe class which calls directly processor instructions (such as compareAndSet or volatile read). This means it's way mo …
modified Oct 28 '14 by m3th0dman
1.When doing the modification, why cannot we just lock the array, do the modification and finally release the lock? Why we have to make a new copy of the array? Because if you were to lock on wri …
modified Oct 21 '14 by m3th0dman
You are partially correct. Java works based on pointers, and all variables pointing to objects are pointers (officially called references). The memory for these variables are allocated on stack in … inside methods live on stack. In Java memory allocation is pretty much the same for both stack and heap (as different from C which has a more complex allocation logic for heap): for stack is just push …
modified Oct 3 '14 by m3th0dman
It really depends if you plan to have object types MyObject, MyObject2,... MyObjectN stored in a single map instance or multiple maps that store MyObject. In the former case with multiple object type …
modified May 24 '14 by m3th0dman
The question can be divided into "Why does Java C support brackets behind variables and even behind method signatures?" and "Why would Java inherit so much from C?"; Java also inherited other weird … when Java appeared most programmers worked in C and C++; C++ had a large success because it was a superset of C by adding OOP. Java simplified C++ as much as possible but tried to keep it close as …
modified May 12 '14 by m3th0dman
Recently I started programming in Groovy for a integration testing framework, for a Java project. I use Intellij IDEA with Groovy plug-in and I am surprised to see as a warning for all the methods … that are non-static and do not depend on any instance fields. In Java, however, this is not an issue (at least from IDE's point of view). Should all methods that do not depend onto any instance fields …
modified Apr 1 '14 by Ian
16 in Effective Java 2nd edition by Joshua Bloch. In your case, instead of public class School extends ArrayList<Student> { } use public class School { private List<Student> list; } or if …
modified Feb 28 '14 by m3th0dman
It is possible that the program that runs on that process was designed to be deployed to multiple nodes; in that case you have the same process on two nodes, and the process from node 1 calls the proc …
modified Oct 25 '13 by m3th0dman

15 30 50 per page