suresh krishna Avanthkker

Greenhorn
+ Follow
since May 24, 2010
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 suresh krishna Avanthkker

I cleared my OCPWCD and want to do a small project, Then I realized I need to know web designing/swing/awt/swt/jface /photoshop etc . I read the head first html and css but it just puts me in a right direction. can some one suggest me a good book with lots of examples on web design and books for swing/awt/swt/jface
13 years ago
I just read the head first servlets & jsp twice and did the exercises, took 3 months to prepare.Its not like prometric, the questions are all multiple answer questions and tougher than the exercise in the book.I thank Bryan Basham,Kathy Sierra and Bert Bates for giving the world such a wonderful book.

Can I do SCEA next then what are the books I have to refer to.





Thanks for the info Kowalski.I think I will go ahead with OCWCD EE5 as there is no proper clarity about EE6.Thanks Sanaulla.
What is the difference in OCWCD java EE5 and Oracle Certified Expert java EE6 (jsp & servlet develop).I have bought HF Servlet & Jsp and want to prepare for OCWCD but it has EE5 and Oracle Certified Expert java EE6 (jsp & servlet develop) has EE6 and looks more superior / latest and also it has the word Expert.
Hi,
I have finished reading and doing all the examples in "Java Servlet Programming Bible" by Suresh Rajagopalan,Ramesh Rajamani, Ramesh KrishnaSwamy and Sridhar Vijendran.
I am planning to buy HFSJ and take up SCWCD exams but got confused when I visited the Oracle site which shows there is another certification which looks latest by the number as it is Java EE 6 and SCWCD is EE5.I saw that the exam topics is the same for both except for the fees.I have certain doubts given below

1)Will HFSJ book cater for both the exams?
2)Will I get Certificate for JEE6 ?
3)Which certification is better recognised in the industry SCWCD or JEE6?
4)Should I wait for SCWCD6?
5)Should I forget about SCWCD EE5 or JEE6 and just start with HFSJ as I think I still dont have the grip on servlets
and JSP,if yes in that case are there any other book with lots of examples as I heard that HFSJ doesnt has many
example programs

Regards
Suresh Avanthkker
SCJP6

Dear All ,
Thank you for all the help ,I received from you all,especially Sachin Deokar,Joanne Neal, Jesper Young and Bert Bates.
I just did lot of small programs as I read " Sun Certified Programmer for Java 6 Study Guide" by Kathy Sierra and Bert Bates.
I would have read and done the exercises for around 5 times and finally before a week to take the exam I would have done the Learn Key Master Exam for 2-3 times taking a open book exam , answering the questions and checking if it is right and if not look at the answers provided and work out the logic and correct myself.I think I should have taken a lot of mock exams to get better result.
But after all this the actual exam is a brain bender, I will say go through the text at least 3-5 times and do lot of programming during the first time you read the book and also do the Learn Key Master Exam as many times as possible after you have completed the book once.
I will especially thank Kathy Sierra and Bert Bates for giving such a wonderful book to the World.

Regards
Suresh K Avanthkker
13 years ago
"widening should not lose out to newly created method that relies on boxing"as quoted in book.
if argument is byte and in the parameters there is an option of and then callMethod(int, int) will work.

"you can box and widen(An int can become an Object , through an Integer" you cant do the reverse.
In callMethod(2, 3) since both 2 and 3 is byte, I think callMethod(int ...i) will not be called as widening
beats boxing and boxing beats var-args .AscallMethod(int ...i) is var-args ,widening will beat var-arg and there
no option of widening i.e callMethod(int, int) therefore then boxing has to take place
so byte is boxed to Byte and widened to Object and callMethod(Integer... i) will cast the Object reference
to Integer, therefore callMethod(Integer... i) has to work.

Dear Bert
I am overwhelmed with joy to get my doubts sorted out from you. Your book is just very very good.
I am science graduate , but for the last 10 years was in finance as an agent for home loans .I had done C reading through Dennis M.Ritchie and Design Of Operating System by Maurice J. Bach around the year 2001 . After a gap of around 10 years ,8 months back when I decided I have to change my profession, my freind Mahesh adviced me to take SCJP 6 exams and bought your book and gave it to me and I have worked out and read your book twice and reading it thrice and each time I go through it , I am getting to know more.I will be taking up SCJP exams by next month end. My Regards to both you and Kathy Sierra for giving such a wonderfull book .

The doubt I had is as given below

1)public class Starter implements Runnable
2) {
3) void go(long id)
4) {
5) System.out.println(id) ;
6) }
7)
8) public static void main(String[] args)
9) {
10) System.out.print(Thread.currentThread().getId()+" ");
11) // insert code here
12) }
13) public void run()
14) {
15) go(Thread.currentThread().getId());
16) }
17) }
and given the following five fragments:
1. new Starter().run();
2. new Starter().start();
3. new Thread(new Starter()).run();
4. new Thread(new Starter());
5. new Thread(new Starter()).start();

As per your advice I have to just assume or work on how many threads are generated when I insert the code at line 11 and since the options given are

a) all five will compile
b) only one might produce the output 4 4
c) only one might produce the output 4 2
d) Exactly two might produce the output 4 4
e) Exactly two might produce the output 4 2
f) Exactly three might produce the output 4 4
g) Exactly three might produce the output 4 2

I should assume the output for line 10(System.out.print(Thread.currentThread().getId()+" ");), ie id for main as 4 and then work as to how many threads are created if I insert the code at line 11 for example if i insert "new Starter().run();" then the argument of go() call will be 4 and the go() method prints out 4 so the answer can be 4 4.So for every code I insert at line 11 , I have to work out the Id numbering like this

Regards
suresh
Thank you Joanne Neal and Sachin , but I hope I dont get this type of question while I take up scjp . I did understand what you and sachin said, but if the options are out of the world , I think I have to bet on my stars and guess on the options.
On what basis can i answer the above exercise if i get it for the scjp exam , the option given is
a) all five will compile
b) only one might produce the output 4 4
c) only one might produce the output 4 2
d) Exactly two might produce the output 4 4
e) Exactly two might produce the output 4 2
f) Exactly three might produce the output 4 4
g) Exactly three might produce the output 4 2
the answer for the above excercise is 4 2 & 4 4 but output on my system is 1 1 or 1 or 1 1 or 1 8

Hi, Joanne Neal I went through the javadoc but I was not able to find any rule regarding generation of id nos , is the answer in the book ie 4 2 & 4 4 wrong then.

Hi Sachin, if the threads are numbered as and when it starts , there are maximum 3 - 4 threads generated by us in the above program then how does thread id get a value of 8.(the answer as per the book is 4 2 & 4 4 so is it wrong)
where can i look for thread javadoc for my knowledge and is it there for scjp 6 exam as it is not mentioned anywhere in the book

when i executed on my system the output is 1 1 or 1 or 1 1 or 1 8 never 4 2 or 4 4
SCJP by Kathy Sierra / Bert Bates chapter 9 excercise no 13. similar type of question is exercise no 16 & 17
Hi,
I am preparing for 310-065 . I am not understanding what is 4 2 & 4 4 in the answer given below .The exercise is

1)
and given the following five fragments:
1. new Starter().run();
2. new Starter().start();
3. new Thread(new Starter()).run();
4. new Thread(new Starter());
5. new Thread(new Starter()).start();// i think this should be inserted

When the 5 fragments are inserted one at time at line 9 which are true?(choose all that apply)
The answer given is Only one might produce the output 4 2 and
Exactly two might produce the output 4 4 //what is 4 2 & 4 4 , how is it generated