Hassan Naqvi

Ranch Hand
+ Follow
since May 03, 2001
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 Hassan Naqvi

SUPERB ACHIEVEMENT AFSAH....
YOU ARE ON YOUR WAY!!!
Hassan.
So much thanks Jane & Cindy!.
Regards,
Hassan.
18 years ago
Sorry 4 replying late....
Cindy i have WinZip installed in my machine.
Marilyn when i open c:\jd1.3\srs\java\io>in this directory i open
ByteArrayOutputStream(in property it's File Type is Java Source)
i got some thing like this...
/*
* @(#)ByteArrayOutputStream.java1.43 00/02/02
*
* Copyright 1994-2000 Sun Microsystems, Inc. All Rights Reserved.
*
* This software is the proprietary information of Sun Microsystems, Inc.
* Use is subject to license terms.
*
*/
package java.io;

/**
* This class implements an output stream in which the data is
* written into a byte array. The buffer automatically grows as data
* is written to it.
* The data can be retrieved using <code>toByteArray()</code> and
* <code>toString()</code>.
*
* @author Arthur van Hoff
* @version 1.43, 02/02/00
* @since JDK1.0
*/
public class ByteArrayOutputStream extends OutputStream {
/**
* The buffer where data is stored.
*/
protected byte buf[];
/**
* The number of valid bytes in the buffer.
*/
protected int count;
/**
* Flag indicating whether the stream has been closed.
*/
........................ETC.....................................
Still unable to open source code
Regards,
Hassan
18 years ago
I think you are appearing in SCJP2 for Java 2 platform.The 2 here indicates that exam will follow the jdk1.2 rules.
Hope this helps.
Regards,
Hassan
Try this....http://www.javaranch.com/ubb/Forum24/HTML/012379.html
it may helps you
Regards,
Hassan.
Hi Manjunath,
I have done exactly what u said.Just i made the small changes in path i.e c:\jdk1.3\src\java\lang>.After executing the cmd u mentioned i get a series of statements some thing like this....
Loading source file System.java.
Loading source file Thread.java.
Loading source file ThreadDeath.
Loading source file ThreadGroup.
.................etc.
But i didn't got any htmsl file or any new file in ...java\lang>.However i tried the same cmd. at this path,
c:\jdk12-doc\jdk1.2\docs\api\java\lang>
It creats all the coresponding html files.But still unable to see the source code.!
Plz. help. me
Regards,
Hassan.
18 years ago
Thanks Michael.
I have got the src.jar file & after using the command u recommend i got src folder.Now the problem is that when i open src\java\io\ByteArrayOutputStream in notepad i got code in very haphazard way.It is not organized it contains @ , boxes, etc...
plz. help me.
Regards,
Hassan
18 years ago
Thanks FEI.I have to call SUN or ??.Can i do e-mail instead of doing call becuase i can't afford international call bill.
Regards,
Hassan.
18 years ago
Hi friends,
Is there anyway that we can change our testing site without paying more.
Regards,
Hassan
18 years ago
Hi friends,
I hope there must be some resourse of source code of Java.I have look a directory in jdk1.3 named src.But what is procedure of viewing the source code of Java.
Regards,
Hassan
18 years ago
Well, Marcus it is interesting to listen your experience.....
BTW did u got 4 free?...
Regards,
Hassan
Hi Sandeep.
I must say you that Not To Be Tensed!. Keep your moral high that you can DO IT as you get success in your past!!
Regards,
Hassan.

FileFilter: is an interface.Which has accept(File obj) method which takes one argument of File type.
FilenameFilter: is an interface.Which has
accept(File obj,String FileName) method which takes one argument of File type & name of files.It returns true if FileName is present in path identified by obj.

Well, the interesting thing is that, the two overloaded methods out of three takes argument of FileFilter & FilenameFilter respectively.
For more information concern API.
Regards,
Hassan.