questions/java/page/25
To work on timer in java, you ...READ MORE
According to Effective Java, chapter 4, page 73, ...READ MORE
A subclass inherits all of the public ...READ MORE
-Xmxn: It specifies the maximum size, in bytes, ...READ MORE
I wrote a small "TreeMap" class based ...READ MORE
Well, I think the confusion is because ...READ MORE
You can access your application from: http://localhost:8080/sample Deploying ...READ MORE
Hi...here you can try using the overloaded ...READ MORE
First of all, define callFriend: public <T extends ...READ MORE
You can find out the length of ...READ MORE
Yes; the Java Language Specification writes: In the Java ...READ MORE
Hi, there is no as such difference ...READ MORE
Is Java EE just a specification? What ...READ MORE
I think you are not alone who is ...READ MORE
public class NewClass1 { ...READ MORE
Yes, an abstract class can have a ...READ MORE
It's defined in the Java language specification: The members ...READ MORE
for(int i = 0; i < Data.length ...READ MORE
If You check System.out.print(names.length); you will get 3 ...READ MORE
Yes, you are missing out on a ...READ MORE
Using Java’s Float class. float f = Float.parseFloat("25"); String s = ...READ MORE
Try using String.getBytes(). It returns a byte[] ...READ MORE
Switches based on integers can be optimized ...READ MORE
JRE: It stands for Java Runtime Environment. ...READ MORE
finalize() is a method called by the ...READ MORE
You can use Joda Time Library. Interval i ...READ MORE
Runnable is the preferred way to create ...READ MORE
This is not a simpler method, but ...READ MORE
Though both are used for comparison, but the ...READ MORE
<build> <plugins> <plugin> ...READ MORE
// Open the file FileInputStream file = new ...READ MORE
Padding to 10 characters: String.format("%10s", "foo").replace(' ', '*'); String.format("%-10s", ...READ MORE
Reflection API is used to modify or examine the behavior ...READ MORE
Using three dots: public void move(Object... x) { ...READ MORE
We can find a big difference between ...READ MORE
This prints true (even though we don't use equals method: correct ...READ MORE
There are 5 ways to iterate over ...READ MORE
What is Branch Prediction? Consider a railroad junction: Image by ...READ MORE
If you're looking for an alternative that ...READ MORE
You can sort the ArrayList in 2 ...READ MORE
This might help solve your problem...!!!! public class ...READ MORE
String[] arr = new String[] {"John", "Mary", ...READ MORE
String s="yourstring"; boolean flag = true; for(int i=0;i<s.length();i++) { ...READ MORE
What is the fastest and the best ...READ MORE
While programming we often write code that ...READ MORE
Scanner Class is used to take input ...READ MORE
When you declare a reference variable (i.e. ...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.