Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!

Shah Chunky

Ranch Hand
+ Follow
since Dec 27, 2000
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 Shah Chunky

Hello Friends
Can someone tell me what is the HW & SW Requirement for learning EJB. Do i need any training from any Institute or can i do learn on my own using
my home PC.
R there any resources availiable for EJB on Net.
Thanks.
------------------
Shah Chunky - Sun Certified Java2 Programmer.
Hello Friends
I m a JCP.
Can someone tell me whether it is a wise decision to go in for
IBM Certification in Java considering the present Scenario.
Can someone provide me any details on differrent type of IBM Certification
availiable in the market.
Thanks.
------------------
Shah Chunky - Sun Certified Java2 Programmer.

Hi friends...
I finally made it ... Passed JCP with 83%.
Lost marks in Threads,Util, GC (Scored Only 50%, GC 0%)
I would rate this paper on a scale of 1-10 (10 being the JCP)
& will give Marcus Green Mocks a Point of 5-6.
My Score in Marcus Exams :- 79, 83, 80.
Scores of RHE's Mocks :- 76,80,80,83.
Please give JTips Test(One of the Toughest, i scored 58 & 62)
Try to give it twice as it covers number of topics.
I prepared from Khalid & RHE. (Khalid being the best)
In this week, i wasted 2 full days on Inner Class,AWT & Util & was surprised to find very very simple Questions on the above three.
So my advice to others is not to waste more time on above 3 topics(I may be wrong) especially in last week of your Exam.
Just go thru the basics of the above which u will find in Khalid's book.
I had around 25-30 Questions without coding.
Also i was surprised to find 1 Question very close as it appeared in
Sun's Practice Test, so go thru the Sun's Practice Question.
Re: Fill in the blanks, i got 4 Question of which 2 were on Strings &
yes i didn't used Quotes & i got 100% in Java.lang.
I would like to add one more thing about JQPlus.
JQPlus is a very Good Tool but i m annoyed by the fact
that JQPlus contains at least 30-40% of Questions which r taken
from Khalid's book so for me buying JQPlus was kind of Waste of Money.
So my suggestion is that if u have Khalid's Book then no need to Purchase JQP
(Paul Anil :- No Hard Feelings to u & JQPlus Team)
Once u have finished reading a cert book then try to prepare your own notes
& read that notes in the Final week of Exams.
Also in the last hour of exam go thru the I.O constructor & all file methods.
One final thing (how can i forget) thanks to Javaranch & all its members
& forgive me for giving trouble by posting more than 100 Questions. ( I was hoping to get a promotion from ranchhand to something when i reached 100 Postings. :-) anyway i once again give my partial credit for success in JCP to javaranch & will always keep on visiting javaranch.
Thanks.
------------------
Sun Certified Java2 Programmer.
17 years ago
Hi ash...
what about your JQplus Scores.
As i m preparing for (JCP i would like to know so that i can think whether
i should purchase JQplus or not
Thanks
17 years ago
But friends does the below give Compile time error.
I don't get any error in JDK 1.2.1
public class Numeric
{
final static boolean b = true;
public static void main(String[] args)
{
while (true)
{
System.out.println("AS");
}
System.out.println("ASAS");
}
}
Thanks
Hi Scott...
There was no problem when i ran my original code.
The Output was displayed.
Thanks
Dear friends
I have JDK 1.2.1 & it is not giving any error when i use
final boolean b;
Can someone tell me what's wrong with the version that i m using.
Thanks
Hello all...
Will the foll file File object can run on all platforms :-
File f = new File ("/java/demo.txt");
It has been found in books that '/' is used for UNIX & '\' is used for Windows & that the above will not run on Windows Platform, but
then i m using Windows 98, so how is it compiling correctly.
And If it will not work on all platforms then what will be the Error i.e. will it
throw Compile time error or will it give any runtime error.
Thanks
How many Object will be Eligible for GC?
public class Numeric
{
public static void main(String[] args)
{
Numeric n = new Numeric();
System.out.println("Hello ");
Object a = new Object();
Object b = new Object();
Object c = new Object();
Object d = new Object();
d=c=b=a;
d=null;
System.out.println();
}
}
Hello all...
While Loop Mystery...
I have 2 doubts
Case 1:-
int i = 3;
while (i==3)// line 2
int k = 23;// line 3
The above case will not work & is giving Compile time error.
But if i insert a {} between line 2 & line 3 i.e. if i put int k =23; in {}
then it will work. Can someone tell me why ?
Case 2:-
public class Numeric
{
final static boolean b = true;
public static void main(String[] args)
{
while (true)
{
System.out.println("AS");
}
System.out.println("ASAS");
}
}
The above prog gives Compile time error :- "Statement not Reached
but if i replace the while (true) with while (b) then it works Ok.
What i don't understand is that since the value of b is final & final values
r Optimized by compiler at compile time then why come it does not produce
any Compile time Errors.(Since b = true)
Let me take other E.x:-
Say final int i = 34;
byte b = i; // will not give Compile error since value of i is final & is optimized during Compile time , so should'nt the compiler give error in above Case 2 where i m making while (b) // where b = final.
Can someone tell me where i m wrong.
Thanks.

Externalizable extends Serializable interface.
[This message has been edited by Shah Chunky (edited May 28, 2001).]
Hello all...
Can someone tell me whether the Chapters 12 + 13 from JLS r important from JCP Point of view.
Thanks.
Can someone tell me why the below program Serialize the String s even
when it i declared transiet.
import java.io.*;
public class TransientWriter implements Externalizable
{
private transient String s = "Hope I can ever be persistant!";
public void writeExternal(ObjectOutput oOut) throws IOException
{
oOut.writeObject(s);
}

public void readExternal(ObjectInput oIn) throws IOException, ClassNotFoundException
{
s=(String)oIn.readObject();
}
public String toString()
{
return s;
}
}
class K
{
public static void main(String args[]) throws IOException, ClassNotFoundException
{
TransientWriter tw = new TransientWriter();
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("tw.java"));
out.writeObject(tw);
ObjectInputStream in = new ObjectInputStream(new FileInputStream("tw.java"));
TransientWriter tw2 = (TransientWriter) in.readObject();
System.out.println(tw2);
}
}
Thanks
Hi Sachin...
What marks did u score in all the Exams that u have mentioned.
I m also plng to appear for JCP in 1st week of June.
I Scored 78,82,85 in Marcus's Exam (All Exams Completed within 50 Min)
& even i felt that Marcus Exams r very easy
I found Jtips exam really tough, I just scored 62 & 65 in both Exams.
If u want, i can send u via Email.
Do let me know
Best of Luck.

I have found in one tutorial that the file Seprator is Plaform
independent.
Doesn't it mean that any seprator used (\ or /)
will work on all platforms
Please Clarify...