questions/java
Follow these steps: Write: public class User { ...READ MORE
Using braces makes the code more maintainable ...READ MORE
Is Java EE just a specification? What ...READ MORE
You can find out the length of ...READ MORE
According to Effective Java, chapter 4, page 73, ...READ MORE
for(int i = 0; i < Data.length ...READ MORE
Yes, an abstract class can have a ...READ MORE
If You check System.out.print(names.length); you will get 3 ...READ MORE
You can connect your Java code with ...READ MORE
I think you are not alone who is ...READ MORE
This is not a simpler method, but ...READ MORE
Yes; the Java Language Specification writes: In the Java ...READ MORE
I don't believe the java AudioStream class ...READ MORE
Using Java’s Float class. float f = Float.parseFloat("25"); String s = ...READ MORE
-Xmxn: It specifies the maximum size, in bytes, ...READ MORE
As you might know, static here is ...READ MORE
finalize() is a method called by the ...READ MORE
I wrote a small "TreeMap" class based ...READ MORE
Switches based on integers can be optimized ...READ MORE
It's defined in the Java language specification: The members ...READ MORE
Try using String.getBytes(). It returns a byte[] ...READ MORE
InputStream in = this.getClass().getClassLoader().getResourceAsStream("TextFile.txt"); InputStream in = this.getClass().getResourceAsStream("/TextFile.txt"); package ...READ MORE
To get the file extension, we can ...READ MORE
Though both are used for comparison, but the ...READ MORE
Let me give you the complete explanation ...READ MORE
You can easily do this by simply ...READ MORE
Hi, there is no as such difference ...READ MORE
I would suggest you to use the ...READ MORE
You can use Joda Time Library. Interval i ...READ MORE
Reflection API is used to modify or examine the behavior ...READ MORE
// Open the file FileInputStream file = new ...READ MORE
Padding to 10 characters: String.format("%10s", "foo").replace(' ', '*'); String.format("%-10s", ...READ MORE
Runnable is the preferred way to create ...READ MORE
This prints true (even though we don't use equals method: correct ...READ MORE
A subclass inherits all of the public ...READ MORE
Using three dots: public void move(Object... x) { ...READ MORE
Basically, there are two important differences between ...READ MORE
<build> <plugins> <plugin> ...READ MORE
We can find a big difference between ...READ MORE
There are 5 ways to iterate over ...READ MORE
You can sort the ArrayList in 2 ...READ MORE
JRE: It stands for Java Runtime Environment. ...READ MORE
You can access your application from: http://localhost:8080/sample Deploying ...READ MORE
If you're looking for an alternative that ...READ MORE
There are combinations of Operating System, JDK ...READ MORE
You need these three things : 64-bit OS 64-bit ...READ MORE
This might help solve your problem...!!!! public class ...READ MORE
What is Branch Prediction? Consider a railroad junction: Image by ...READ MORE
Let's say your file is in C:\myprogram\ Run ...READ MORE
While programming we often write code that ...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.