questions/java
If you are working on Desktop Application, ...READ MORE
In order to use JAVA_OPT you need ...READ MORE
Well, none of these is the default ...READ MORE
Static block is used for initializing the ...READ MORE
Java doesn't supports operator overloading because it's just a ...READ MORE
In your Eclipse IDE, go into Window > Preferences > Java > Installed JREs > ...READ MORE
To serialize an object means to convert its state ...READ MORE
Import the packages required to work with ...READ MORE
The MessageDigest class can provide you with an instance ...READ MORE
There are 2 options you can go ...READ MORE
Strings are immutable. That means once you've ...READ MORE
In Java, you can escape quotes with \: String ...READ MORE
Serializable is a marker interface that has ...READ MORE
Read json from url use url.openStream() and read contents ...READ MORE
Weak references A weak reference, simply put, is a ...READ MORE
Android has some good tips on good ...READ MORE
import java.util.Arrays; import java.util.Collections; import org.apache.commons.lang.ArrayUtils; public class MinMaxValue { ...READ MORE
String str = "..."; // write the ...READ MORE
A class that is declared with abstract ...READ MORE
? : is the Conditional operator and is ...READ MORE
final Handler handler = new Handler(); handler.postDelayed(new Runnable() ...READ MORE
Use a flag, which will indicate the ...READ MORE
This error means you're trying to load ...READ MORE
Think of reference parameters as being aliases ...READ MORE
One possible solution could be using calendar ...READ MORE
<form action="upload" method="post" enctype="multipart/form-data"> ...READ MORE
Hi, to understand their usage, you must ...READ MORE
Statement is used for static queries like ...READ MORE
This definitely returns UTC time: as String ...READ MORE
You can refer the following code: public class ...READ MORE
Before installing Eclipse, ensure that you are ...READ MORE
To fix the exception/ error, you should ...READ MORE
I think you need to make some ...READ MORE
Well, this is happening because of the ...READ MORE
You can concatenate Strings using the + operator: System.out.println("Your number ...READ MORE
A multidimensional array in Java is really an array ...READ MORE
The field annotated @Autowired is null because ...READ MORE
This exception is thrown when an application ...READ MORE
That's because the Scanner.nextInt method does not ...READ MORE
ADD 3 jars found in the following ...READ MORE
You can use a shared variable as ...READ MORE
public static String fmt(double d) { if(d ...READ MORE
Yes, Java bytecode (and source code) is ...READ MORE
Classpath is a parameter in the Java virtual machine or ...READ MORE
You've got two problems: 1) You're using Collections.sort (which takes ...READ MORE
Both the answers (Syntaxes) are correct. If ...READ MORE
Work with smaller batches of HashMap Objects ...READ MORE
Iterate on the items, and clone them ...READ MORE
If you are getting java.net.ConnectionException, it means ...READ MORE
You can use HTML parser. This is ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.