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