holly wang

Greenhorn
+ Follow
since Aug 28, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 holly wang

we have very strict rules in our organization. Application owner and programmers are not allow to work on any production servers even given our servers are all Linux servers which allow multi level users to log in at the same time. application owners have to go through system operation team for any minor change with their applications. did you book has any coverage on this topic?
JSON Quick Syntax Reference:
what is the benefit of JSON over xml? how do you see the future of these two languages?
I am not using javamail and IIS server isn't running at all so no SMLP server is running.

I guess this is one of those weird things
19 years ago
I am using Tomcat for a JSP project. Usually I leave the server on (running on windows 2000)until it get involved with my email system. I send out email from outlook, and people complain that they didn't get the content of the email for several times, and someone complains that they didn't get my email at all. It happened about 4-5 times then I have to turn Tomcat off.

Do anyone has an idea about why this happen?
19 years ago
I did few J2EE projects,and I am not satisfied with the books that I use. It seems hard to find an organized book and provides uptodate information about J2EE. Does your book pay attention on that?
For theory backgroud:
http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/oralob.htm#1000888
Step1. Insert empty_clob() into the Clob column of Oracle
Step2. Set autocommit to false
Step3. Select Clob as oracle.sql.CLOB from database
Step4. Insert String into Clob
Step5. Commit
Example:

I use Oracle 9i and Java 1.4, JDBC 9i, friend also test above code on Oracle 8i with Java 1.2, hope this helps.
am working on insert a string into a oracle Clob object, after I insert empty_clob() into the clob field, I try to lock it for further process:
//create table test (id integer,content clob);
String sql="insert into testTable values(1,empty_clob())";
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery(sql);
String sqll="select content from test where id=1 for update";
ResultSet rss=stmt.executeQuery(sqll);
if(rss.next()){
oracle.sql.CLOB clob = (oracle.sql.CLOB)rss.getCLOB(1);
clob.putString(1,"ddddddddddddddddddddddddddddddddddd");
sql="update test set content=? where id=1";
PreparedStatement pstmt=con.prepareStatement(sql);
pstmt.setClob(1,clob);
pstmt.executeUpdate();
pstmt.close();
}
Does anybody knows why when the system come to "if(rss.next())" then it just freeze it? I can't go on whatever I do. Please help me, this is such a pain
I am working on insert a string into a oracle Clob object, after I insert empty_clob() into the clob field, I try to lock it for further process:

//create table test (id integer,content clob);

String sql="insert into testTable values(1,empty_clob())";
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery(sql);
String sqll="select content from test where id=1 for update";
ResultSet rss=stmt.executeQuery(sqll);
if(rss.next()){
CLOB clob = ((OracleResultSet)rss).getCLOB(1);
clob.putString(1,"ddddddddddddddddddddddddddddddddddd");
sql="update test set content=? where id=1";
PreparedStatement pstmt=con.prepareStatement(sql);
pstmt.setClob(1,clob);
pstmt.executeUpdate();
pstmt.close();
}
in dan's mock exam, exam 2, question5,
class MCZ15 {
public static void main (String[] args) {
float a = 1.1e1f; // 1
float b = 1e-1F; // 2
float c = .1e1f; // 3
double d = .1d; // 4
double e = 1D; // 5
}}
A compile-time error is generated at which line? The answer is none. "A floating-point literal can begin with either a digit or a decimal point. Optionally, it can have a fractional part, an exponent part and a floating point suffix--f, F, d, or D. "
Can anybody explain: float b = 1e-1F;? what is it?

Dan's exam
Armando, glad to know that you figure it out since vicken's answer bothers me a lot. Just to make is simplofies:
int i=10;
int j = ++i + i++;
step 1: ++i, i=11
step 2: j = i+i = 11+11 =22
step 3: i++, i = 12
BTW, will you please tell me what is "javap"?
Thank you.
I don't have anyone around me who have that book, actually just one friend took the exam and she used P&S. Can yu tell me why you love K&B? I really don't know if I should buy two books for this exam.
Thank you again.
hi, guys,
I just start to prepare for the test, I have Philip & Simon's Complete Java 2 Certification study guide at hand, but it seems everyone here favors K&B's. Plus one of them, maybe both of them are very active here. So should I get that book? What is the difference between these two books?
Thanks for the advice.
I am reading "The complete Java 2 Certification study guide" by Philip and Simon. On page 17, it writes "All member varibles that are not explicitly assigned a value upon declaration are automatically assigned an initial value", it also give a table about the initialization values for member variables. But when I do a simple test code as following:
public class Test {
public static void main(String argv[]){
int i;
System.out.println(i);
}
}
I got the error message:
variable i might not have been initialized
System.out.println(i);
^
So, anyone can help me on that?
Thanks.
Holly