questions/java
What is Branch Prediction? Consider a railroad junction: Image by ...READ MORE
A variable defined within a block or ...READ MORE
Hii, You can just find out by given ...READ MORE
Hello kartik, setAcceptor(TabAcceptor a_acceptor) should let the consumer code ...READ MORE
This will work: try { ...READ MORE
There are 2 options you can go ...READ MORE
there are some traditional ways that you ...READ MORE
So they could be used one day ...READ MORE
Hii, Possible causes: Simple configuration issue, where the specified ...READ MORE
There are 5 ways to iterate over ...READ MORE
Java has "static nested classes", but they ...READ MORE
String s="yourstring"; boolean flag = true; for(int i=0;i<s.length();i++) { ...READ MORE
Reasons for using Multithreading in Java: When a ...READ MORE
Both OpenJDK and Oracle JDK are created ...READ MORE
Well, none of these is the default ...READ MORE
Assuming TreeMap is not good for you ...READ MORE
This is very simple, you need an ...READ MORE
Socket programming is a way of connecting two ...READ MORE
Runnable is the preferred way to create ...READ MORE
In ' '*(r-x-1) and '*'*(2*x+1), you used multiplication ...READ MORE
ConcurrentHashMap: It allows concurrent modification of the ...READ MORE
Yes, an abstract class can have a ...READ MORE
Hey, You can follow these few steps: From the ...READ MORE
You can use break with a label for the ...READ MORE
Composition is again specialized form of Aggregation ...READ MORE
You can use a HashMap to serve ...READ MORE
Following are the steps to run the ...READ MORE
First, you will have to create a ...READ MORE
It's defined in the Java language specification: The members ...READ MORE
In this program, we have two threads ...READ MORE
You may refer the below code: public static ...READ MORE
We can find a big difference between ...READ MORE
Either: Foo[] array = list.toArray(new Foo[list.size()]); or: Foo[] array = ...READ MORE
Object cloning means to create an exact ...READ MORE
import java.util.Arrays; public class Sort { ...READ MORE
It should respond to ActionListeners, like this: combo.addActionListener (new ...READ MORE
If you are interested in finding out ...READ MORE
Hi @Sneha, you could use something like ...READ MORE
I think you are not alone who is ...READ MORE
Hi, @Nikhil, Yes it's possible to drop a ...READ MORE
There are different ways you could do this ...READ MORE
import org.apache.commons.codec.binary.Base64; We can not use sun.* packages ...READ MORE
I'd want to transform the following object: {"1":5,"2":7,"3":0,"4" ...READ MORE
READ MORE
Well, Java doesn't allow this because of ...READ MORE
ArrayList is what you want. LinkedList is almost always a ...READ MORE
We can do this in 2 ways: String ...READ MORE
Hello Kartik, You can try the syntax: UIManager.setLookAndFeel(PLAF); (Pluggable ...READ MORE
Apache Commons allows: String myString = IOUtils.toString(myInputStream, "UTF-8"); And ...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.