denish mehta

Ranch Hand
+ Follow
since Dec 21, 2000
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 denish mehta

Hi
I want to know the complete address of the sun office where we mail our contract for logo from sun. They have gievn some address of Sao paolo. I have no idea whether it's in USA or is it a country itself(poor geography eh!).
Thanx for your help
Regrads
Denish
22 years ago
Hi
Dilip Do u git to have any experience as a prerequsite??
Regards denish
Hey guys.
I am new in this forum. Plz answer the following questions
1) where can i get detailed info about it ??(web links).
2)What r the good books??
Regards
Denish
93%
Hi

Thanx for the reply. The questions were just like Marcus's exam
Regards Denish
22 years ago
93%
Hello java ppl
By the grace of One who is the creator of all living beings I am " Sun Certified Programmer for the Java 2 Platform. I scored a cool and refreshing 93%. I am very happy.
I would like to give maximum credit to this wonderfully amazing sit "javaranch".
Because if it not had been for this site i would have never been SCJP now(I think Sun should acknowledge u ppl or some thing for the role u r playing in teaching java).If it would not have been due to this site I would have never know what it takes to be a java certified. I came to know about the books ,jls, mocks, level of question and inspiration from this site.Thank u Guys .Jane,Cindy,Ajith, and especially Maha and all others who keep this site up.
And a special thanks to all those who were kind enough answer my question even the last few ones yesterday and the day before it ,which were really childish(e.g range of char etc).
It took me about 4-months (because i am lazy and inconsistant) to prepare for the paper. Since i am not from IT background and never done programming before .
I read KAM, JLS,Ivor Horton.
Did a lot of mocks. Question from thread were not bad and 6-7 only.I/O they were 6-7.
inner classes were the toughest part They had about 9-10 question with about 6-7 with codes.But none of the code were big then 15 line except for 1 which was i guess 30 line and was of thread.
Marcus Has an excellent mock.
And i have still one question ?
I did took paper from Oracle platform due to some personal reasons What i want to know is that can i take Sun's developer paper or can i only take JDeveloper???
See u All in the developer forum.
Regards
Denish.

[This message has been edited by denish mehta (edited May 11, 2001).]
22 years ago
still no response ??? that's strange
Thanx a million guys for replying so quickly
So local variables got me.
regards
Denish
Hey guys i need urgent help on this.
This question is from Marcus 1st Test.
Please read the code.
public class Tux extends Thread{
static String sName = "vandeleur";
public static void main(String argv[]){
Tux t = new Tux();
t.piggy(sName);
System.out.println(sName); //Line 2

}
public void piggy(String sName){
sName = sName + " wiggy"; //Line 1
start();
}
public void run(){

for(int i=0;i < 4; i++){
sName = sName + " " + i;

}
}
}

This code compiles and run successfully. I am using Win 2000 and JDK 1.3 But the problem is It is printing only "vandeleur". What i want to know is this..
1) is thread created User Thread??
2) if yes why does the Thread created never get chances to complete or even start in this case??
In my understanding The main should not have control back untill start has been called .This should always execute "Line 1". But it don't even go there and ends main by exceuting "Line 2".
And last but not least. After executing "Line2" it just finishes !!! don't even bother to execute run of thread spawnd??
I have a gut feeling that i am missing some thing very obvius here am I ???
Regards Denish


[This message has been edited by denish mehta (edited May 09, 2001).]
Hey Lam The question only says uptill line 6 method returns on line 7.That's why
Regards Denish
Thanx a lot guys.
Regards Denish
Thanx a lot guys for such a good explainations
Denish
Come on guys it should'nt be that much of problem !!!
Regards Denish
Hey java ppl
I am confused here Read this code
byte x=2;
switch(x)
{
case 'b': // 1
default : // 2
case -2: // 3
case 80: // 4
}
it compiles cleanly on the other hand
char c='o';
byte b=c; //gives error why ???
I thought that case label values should be assignable to switch argument but how can a char in first case 'b': get assigned to byte x

Regards Denish
Hey guys
I can't understand why this compiles "correctly" and donot give error of redeclaring of "i".
static int x = 5;
public static void main(String[] args)
{
int x = ( x=3 ) * 4;
System.out.println(x);
}
Regards Denish.
Hey java ppl
I am confused here plz help !!
I read in KAM (page 560)that readUTF() and writeUTF() (of DataInputStream and DataOutputStream)also read and write strings of characters, but use UTF-8 character encoding. What happend to reading and writing bytes characteristics of these steams .Does it mean that they read bytes comprising the characters.
Regards Denish

[This message has been edited by denish mehta (edited May 08, 2001).]
[This message has been edited by denish mehta (edited May 09, 2001).]