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:"*"
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.

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 …
answered Nov 23 '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 …
answered Oct 3 '14 by m3th0dman
What are the advantages of Weblogic or Websphere over Glassfish or JBoss, since they may reach costs of millions of dollars? Edit: Is there additional functionality? The all are Java EE Full …
asked Sep 14 '12 by m3th0dman
It can use field data; consider the following java code: class MyBean { private String myString; static void myStaticMethod() { myString = "tada";/*not allowed; if this was possible …
answered Sep 11 '13 by m3th0dman
contracts does it enforce on the implementing classes. In Java you are obliged to implement all of the interface's methods and maybe you really don't need all of them in your class and you cannot change …
answered Dec 2 '12 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 …
answered Nov 6 '14 by m3th0dman
Your reference is of type Foo; it does not know the type of the object it's referring to. Even with this, inheritance breaks encapsulation; by permitting the instance fields to be overridden too, enc …
answered Sep 16 '12 by m3th0dman
Why are Java servers so scarce and costly? A: Java servers are usually used by large enterprises, thus are more complex and expected to be more costly than relatively simple applications built … with LAMP. Also, Java is not primary used for web application but for middleware. Also, Why has no java based light weight stack come up as a competitor ? A: There is Groovy language based on …
answered Oct 18 '12 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 …
answered Oct 21 '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 …
answered Oct 28 '14 by m3th0dman
Another reason is to be able to use them in inner anonymous classes: public interface MyInterface { void foo(); } void myMethod() { final String asdf = "tada";//if not final cannot be used …
answered Aug 9 '13 by m3th0dman
Technically there is nothing wrong with this from the language point of view. There would have been problems if you have inherited from two classes, where the base classes are implemented. If you con …
answered Nov 28 '12 by m3th0dman
What I would like to be able to do is jave a simple JFrame and then for each component (like JLabel) simply specify X and Y coordinates where I want it to be situated -- done deal. You can do …
answered Jan 19 '13 by m3th0dman
Because with state it would have been an abstract class; and since there is multiple inheritance allowed for interfaces => Java would have supported full multiple inheritance => diamond problem. …
answered Jan 27 '13 by m3th0dman
Data and information hiding are a broader notions, found in computer science & software engineering. It refers to the fact that those part of a computer program that may change must not be accessible …
answered Nov 4 '12 by m3th0dman

15 30 50 per page