juan Tsui

Greenhorn
+ Follow
since Oct 26, 2001
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 juan Tsui

hello:
I cannot give you any suggestions. I only can thanks you .
I know how to zip files from yours.
Thanks!
22 years ago
Hi:
Thomas! Thank you for your answer !
I have searched in java.util.jar and java.util.zip ,but I known for example: jarfile(), means read *.jar file.
Perhaps method JarOutputStream()? But how can I use that ?
Thanks !
22 years ago
Hi:
All ! How are you !
I know jar clear to use ! But I cannot find what method can be used to relealize jar files? for: a(File file ); Use a(),can compress file to a .jar file ? Who can tell me ? Thanks !
22 years ago
Thank Shyamsundar Gururaj !
Thanks Shyamsundar Gururaj for your advice and help !
I will take test this week !
I hope I will win in the test!


Hello:
Ppeople! I have a simple question .I will join the Sl-275 this week! I am very nervous,now !
String[][] s = new String[10][];
c) s is an array of 10 arrays.
statements c) is right or wrong ! Can people discuss it for me ?
Thanks !
Hi :
All ! I have a question about exception execute !
Question 16: What appears in the standard output if the method named problem() in the code below throws an instance of class Exception when the method named trythis() is invoked?

Select all valid answers.
a) "1"
b) "2"
c) "3"
d) "4"
e) "5"
tha answer is a,c,d . But I think e)also should be print !
I know that when there is some exception cannot be catched , finally block will execute and after finally will never execute!
Now , I think this should excute because no exception cannot be catched. Can anyone tell me mine is wrong or right ?
(Marilyn added code tags)

[This message has been edited by Marilyn deQueiroz (edited November 04, 2001).]
Jose Botella:
[B]This is explained in JLS 6.6.2
If the accessing class is in a diferent package, it must be a subclass of the accessed one and the declared type of the reference used in the access expresion must be the same or a subclass of the accessing class.
Please read the JLS because there are more interesting points regarding protected constructors.
Hello
Jose Botella. I think your explain is very well ! I have this question many months.I want to know JLS means ! Where can I find?
Thanks !
juanTsui
Thanks All ! Thanks for you!
I think the answer perhaps has some problem ! I am going to find it out !!
Thanks !
juantsui
Hi:
All,there is a question :
1.How many String objects are created when the following class is run?
Code ��
 public class TestClass {
public static void main(String args[])  {
String hello = "Hello"; //1
 String world = new String("World!");//2
   String helloworld = hello +" "+world;//3
   String alias = helloworld ; //4
   System.out.println(alias); //5
 }
}
I think there is only 5 object!
//1 has one in literal pool "Hello",
//2 has two ,one is in programm space,other is in literal pool,
//3 "" is one , the last is "Hello World!" as helloworld reference ! So only 5 ! But tha answer is 6 !
Who can tell me Why ? Thanks,very!!
Hi:
All ,the question and the answer are very well. I am implicit with these .
Thanks All .

Originally posted by Gong James:
Q38 Which of the following are true?
A Only threads have locks.
B Classes have locks
C Primitive types have locks.
D Only Runnable objects have locks.
the given ans :b
my ans :a

I a beginner of java ,could somebody kind enough to give some comment to clearfy my confusion.



Hello ! I think every Object has a lock ! So A .C and D are all wrong !
Hello All:
I want to know "jqplus" and "jwhiz" means ? Can you tell me ?
Thanks !
Question 1: Given the following class definition:
class A {
protected int i;
A(int i) {
this.i = i;
}
}
Which of the following would be a valid inner class for this class?
Select all valid answers.
a)
class B {
}
b)
class B extends A {
}
c)
class B {
B() {
System.out.println("i = " + i);
}
}
d)
class B {
class A {
}
}
e)
class A {
}
The answer is a, but I think c Is right too ! Please tell me mine is right or the answer is right?