Cao Bin

Greenhorn
+ Follow
since Apr 23, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Cao Bin

I'm also doubt about this question.
Can someone tell the program flow.
Thank you!
Fill in the table to indicate which Exception and Error classes are typically thrown programatically and which by the JVM.

Exception/Error class:
ArrayIndexOutOfBoundsException
ClassCastException

What's the difference between programatically and by the jvm?
I have just made a test.

when compile,the compile error like this:
A() in a.A is not public.so can't be get from other packages.

so 2,3 should be choosed
hello!

there are two methods:

public boolean m1(){
return true;
}

public boolean m2(){
return (true);
}

In my opinion ,these two methods have the same function.
Why some place use m2()?

best regards.
[ June 03, 2007: Message edited by: Cao Bin ]
I'm sorry to give so much trouble.
I hope this change will confirm with regulation.
It's my real name.
import java.util.*;
import static java.util.Collections.sort;//#1

public class Sortee {
public static void main(String[] args){
List x = new ArrayList();
x.add(5);
x.add(new Integer(42));
x.add(new Integer(17));
x.add(Integer.parseInt("812"));
sort(x);
System.out.println(x);
}
}

In this java source.#1 use the static import to invoke sort() method.
what's the reason.
It's the first time saw static import.How to use static to modify package.
If we change the #1 to:
import java.util.Collections;
What else should we do to make this java source run well?
Thanks!
java exceptions may be runtime exception,a checked exception,a error.
some exceptions throw by jvm,some throw by programmer.
how to distingush different exception? how to deal with exceptions.
please give a suggestion.
Thank you.
Thank you.
I get it.
hello.
I want to know what's the difference between
List<String> test = new ArrayList<String>();
and
ArrayList<String> test = new ArrayList<String>();

thank you.
it's difficult for me too.
can sharan vasandani tell us how you to considered about this question.
thank you
In calculation,byte,char autochanged to int.
congratulations!
16 years ago