• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Threads

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kapil,
Its great u r here, well i had studied all the topics for certification and in the last week of october i have my slot.
Well, the problem is of threads, well i am use to its theory like various states, synchronization etc. but the questions in exams on threads will be on coding or programming. And literally i am not very good at programming threads.
So, kapil can u please tell me some short cut with which i am able to attempt all the thread based questions with confidence.
Approximately how many questions in the exam are based on threads.
thanks in advance.
NISHEETH
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Nisheeth,
Thanks for your question!
I can very well understand your problem as this is one of the most common problems faced by our users and we have put in best effort in to address this.
In the current pattern, there is a significant contribution by questions on Threads (long synchronized codes, runnable interface related ones etc.), Inner Classes (long code based), IO (majorly testing your knowledge of Constructors of various Input Output Stream classes).
You can expect around 5-7 questions from threads topic. To tell you the truth, there is no short-cut to conquer this important but little tricky topic (one of the features of java which is not completely platform independent). In fact it was also a challenge for us to come up good questions on these topics.
I will say more than anything else, practicing by WRITING CODE will help. Never underestimate the importance of practice of writing code.
Still there are few things one should take care of:
a.) You should be aware of all the methods of classes/Interfaces of thread API. You should know the role of each method and the qualifier (like if a method is a static one or not) for each method.
b.) Get yourself clear about the difference b/w extending a Thread class and implementing Runnable Interface.
c.) Make sure you are aware of the possible ways to do synchronization.
d.) Be very clear about wait(), notify() and notifyAll() methods as part of synchronized codes. This is the most tricky part to understand. But i think the best way to resolve and be clear is by writing code. Robert Heller and Ernest has a good example which describes a case from the beginning.
I think the above points are important for the exam besides others. In case you need even more practice of questions, you can try out at least Threads chapter from more than one book.
We do have recommended readings for the topics like Threads, IO and Inner Classes on our latest faq page:
http://www.whizlabs.com/java-certification/java-certification-faq.html
If you haven't yet tried out our product, i would request you to do so .
Once again i will stress on WRITING CODE as none other method (be it J@Whiz) can beat this well-known method of learning.
I hope this helps.
Warm regards and best wishes
Kapil Nakra
http://www.whizlabs.com/jwhiz
 
reply
    Bookmark Topic Watch Topic
  • New Topic