Arijit Kundu

Greenhorn
+ Follow
since Jan 19, 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 Arijit Kundu

Hello Everyone ,
I am new to the world of EJB . I have got my Sun Certification and would now like to start off with EJB .
I have downloaded the softwares and the docs from the Sun site .
and will really appreciate anyone helping me to get a start on my new mission .
I am trying to compile a few of the codes given in the docs but i am getting a lot of compile time errors as the import s are failing .
I have set the path and classpath variables as follows :
path : c:\j2sdee1.2.1\bin
classpath = c:\j2sdkee1.2.1\lib\j2ee.jar
Pls help me with the configurations and other details to get me started .
Thanks a lot in Advance
Yours Truly
Arijit Kundu
To all participants in the forum , i am new to EJB and would like to know about how to run a EJB program .
Can i practice code in Windows 98 platform .
what do i need to download . i have java 2 sdk 1.2 installed .
please do guide me about the procedure as i am a bit confused .
thanks in advance
Arijit
thanks vashant . but today i found out that Sun is not very clear on these grounds .
I cleared my test today with 88 % .
2 ques of fill in type where i was not sure to give a semicolon in one and the closing brace of a class declaration in the other.
anyway it feels good to have cleared the exam .
thanks anyway for your prompt reply .
bye
Arijit
It feels great to write in this forum today that, I am now a Sun Certified Java Programmer . Cleared my test today with 88 % .
Feeling a lot relieved after so many weeks of hard work.
I have been visiting this site occasionally and have found this site to be a great one for studying for the SCJP .
My sincere thanks to everyone in this site who actively participate . My thanks to Maha Anna - her web site is just too good and i guess it covers everything you need for the certification . she has done a great job in guiding others .
My Profile :
I am Mechanical Engineer - 18 months into the software industry and Java is my first Object Oriented language and i have been seriously studying for the exam for over 4 months amidst regular office hours and the last month recovering from jaundice but i should say i enjoyed every bit of it .
The Exam :
The exam was quite easy ( it should after so many rounds of mock exams) - though i have answered 7 ques incorrectly i guess and sadly missed the 90% mark, the interface was clean and better than any of the mocks i have faced though tester in rhe is quite similar.
i was not sure whether to give a semicolon at end of an expression or to give the opening brace for a class declaration for two of the fill in the blank ques . Sun is not 100 % clear in the instructions on this ground .
I finished within one hour and revised for the next. Time is not at all a constraint .
Lot of questions were pretty common as in the mock exams .
i had 2 on threads
2 on garbage collection
1 on Gridbag
4-5 on AWT
3-4 on Exceptions
2-3 on IO
6-7 on declarations and access control
and many on other language fundamentals and overloading / overriding
My Preparation :
I studied Java Complete Reference by Patrick Naughton and Herbert Schildt(a very good book)
and then Core Java for my basics .
Then i did RHE and Barry Boone .
RHE is too good a book for the certification . Though i liked Boone too which had quite a few good examples and questions but rhe is by bar the best available .
I went thru both the books twice and i used to score 95-98% in the tester in RHE .
Boone's test i used to score around 85-90%
I have done the Marcus Green's test which are also very good .
Besides the various postings here at javaRanch really helped me out and i got links to other real good sites and tests from here .
The Round Up Game here was so cool and it was real fun getting all the cows inside . The ques there gave me a good revision of my concepts .
Eagerly waiting to get into Servlets,JDBC ,RMI , EJB ..
My thanks once again to all the Ranch hands and all the nice people out here , my thanks to my family for support and encouragement .
anyone here knows of any good jobs around ... i can code in java .if so pls mail me at arijit_kundu@hotmail.com
bye
Arijit
Ques 1 .
What is the correct way to answer the fill in the blank questions ?
<1>Do you need to give the semicolon at the end if you are asked to give a one line code or expression ?
<2>Do you enclose the answer within quotes ?
Pls advice , appearing for SCJP tomorrow .
Thanks
Arijit
Hi All ,
While going thru some of the posts on this site i found something said to the like of SCJP syllabus and objectives going to revised in AUG .
As I have planned to sit for the exam very soon , I would like to know the real story behind this or any site where i can get information from .
Further what is about the SCJP2 Beta test .
I have taken my voucher for the exam .
Pls apprise / help in this regard .
Thanks a lot
Arijit
Hi ,
In my opinion the answer will be d ) DataOutputStream as it supports writing of primitive data types .
bye
Arijit
Hi ,
I found this ques in IBM Mock Test .
I think the correct ans is e) .
Pls correct me if i am wrong .
Thanks
Arijit
Applets implement behavior in the Container class because Applets:

a) Implement the ContainerListener interface

b) Extend the Frame class

c) Indirectly extend the Component class

d) Implement the Runnable interface

e) none of the above

Thanks ,
that clears my doubt
Arijit
class m1{
public static void main(String args[]){
System.out.println(9^2) ;
}
}
pls explain the output out here . it might be very simple but i am a bit confused with these operators .
the ans is given as 11 .
bye
Arijit
thanks indu ,
u r right in pointing out the typo .
thanks for ur help
bye
Arijit
if i declare and assign a byte as
byte b = 2 + 5
compiler do not object and the value of b is 7
but suppose i have a byte c = 2
and i assign another byte d as
byte d = c + 3;
compiler complains .
this i understand as in the rhs of the exp byte c is promoted to an int and the result is an int which cannot be implicitly cast to a byte - so the error .
but what is happening in the first statement
byte b = 2 + 5
here the rhs are int literals 2 and 5 being added and the result is 7 . then how is it getting converted to a byte (shortening conversion)
this sounds simple but confusing !
can anyone pls explain the reason .
thanks
Arijit
thanks lionel ,
i got it
bye
Arijit
i tried out this piece of code which shows that both static variables and methods can be accessed by object references.
maybe the ques is wrong .
hope this helps
public class Xxx
{
static int i = 8;
static{System.out.println("at load time i is " + i);}
static void amethod(){
System.out.println("in static amethod()");
}
public static void main(String args[])
{
Xxx x = new Xxx();
x.i = 9;
System.out.println("refered by ref var i is " + x.i);
x.amethod(); // accessing amethod()
}

}
bye
Arijit
Hi ,
I found this ques in the ibm certification tool
would like to know what u think the correct answer would be
public class Xxx
{
static String s ="AAA";
static
{
s = (s + "BBB");
}
public static void main(String args[])
{
System.out.println("s = " + s);
static
{
s = (s + "CCC");
}
}
}
a) s = AAA is displayed

b) s = BBB is displayed

c) s = AAABBBCCC is displayed

d) lines 3 and 6 produce a compiler error
i think the ans is d)
as a static block will get executed only once at class load time
and as strings are immutable objects you cannot initialise like this .
ANy suggestions / correct explanations ?
Thanks
Arijit