This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Garbage collection, threading,regx

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone,

Iam rajansellapan,preparing SCJP exam. I am not able to understand Garbage collection, thread synchronization, and regx,
Iam studying with K&B exam book and Head First java,

Can anybody tell me, which book/site teaches me to gain in-depth knowledge about these topics.

I want more sample programs.

Please help me
 
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Rajan, welcome to the Ranch


Just a quick note on the thread title, you would need to be more specific in the future, there are some forum rules around somewhere, sooner or later a kind soul will point you to them if you can't find them.

The K&B book is the best, the latest edition should nearly be all you need for SCJP reading materials. However, I also suggest, the Oracle / Sun java tutorials online they are free. You can see them here. In addition,, there is no better way to understand what you read and to complement your learning then with actual application writing, so code code code! We learn from errors and mistakes, so avoid an IDE if you can and go for something like notepad++ if on Windows (not notepad) or textMate / BBEdit is on mac, or Kate or something similar on Linux, and compile from the terminal / command-line. I can tell you even the SCJP bootcamp I went on it was command line and text editor all the way, and it REALLY helps.

Make sure you read the Oracle (SCJP) Exam curriculum, as its changed a little. Not only will this help you to understand what is needed, but also what is covered to avoid any unnecessary worries with what you need to know. For example, there is very little on Garbage collection in the exam (a basic familiarity perhaps needed, and when objects may be legible for gc) but there is more on Threads, Kathy and Bert's book is excellent. Avoid reading too much into one particular subject unless you have difficulties, again check the exam requirements, use the K&B book and did I say code code code?

Finally, I may be a little Bias, but if you want a good start for the SCJP I recommend taking the SCJA (If its still around) first, it really helps you get into the whole certification system, and ensures your basic knowledge is sound. If you can afford to do this, its well worth it, it doesn't take too much study, and Cameron McKenzie's book and website are excellent. Cameron is also a moderator here same as Bert and Kathy, so you can chat with him also, he's a great guy!

So hope this helps, again code code code, K&B and a little extra you will be good, and good luck my friend!

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Stephen,

I'm also very beginer to java. But I want to make my career in java. I took basic course in java in my undergrad school. 2 quaters before. Where we all were using IDE. Now I thought of taking SCJP in the summer break of 3 months. Is this possible in this time duartion? since a month I finished untill 6th chap all I'm scoring is 5/9, 6/13, 4/15(a bad score). I'm little tensed infact a little more. If I do this SCJP certification I also reduce one of my undergrad course. So a little burden too. I fell almost I forgot what I read. but when it comes to do assignments like given a question and do programming in java. I can do better. Although going through K&B book is a good experience I dont feel like trying any new programs other than one in the book. How do I practice coding, as you say code, code,code... is there any questrion sets to slove?


I shited to notepad++ where I learnt a lot about errors and mistakes.

I feel I wont suceed! I'm in chap 7th of K&B. Do I need to follow any other books?
What is the mantra???
 
Ranch Hand
Posts: 446
1
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
code code code means
following

suppose you are studying the Exceptions chapter
and you know the purpose of try catch finally
but for studying thoroughly
you do following things
1. write small programs that demonstrate each combination of try catch block (means check whether we can write catch after finally or only try block etc etc )
2. do separate programs for that
3. generally we throw exceptions in try block only but see what is the result if you throw exception in catch block or the finally block
4. we write return statements in methods but try to return from catch block, finally block, try block and see what happens
5. when using exceptions of same inheritance tree, try changing the order of catch blocks to catch exceptions

Now suppose you are studying for inner classes
then you should take into considerations following questions
1. can a class contain an inteface?
2. Can a static nested class extend a non static inner class?
3. can we extend an inner class from one outer class into another inner class from another outer class?

when studying for threads
check following

1. try to synchronize code
2. write separate programs by creating threads by both extending Thread class and implementing Runnable interface



and when you write programs
give meaningful names to your classes
and comment them when you need it
that too because if you are going for the exam tomorrow and you need a quick revision of the concepts
you have learned through programming then you can read those comments

I am giving a sample program I had written for the preparation
 
kavitha yogaraj
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Prasad,

Will try using those ideas while learning n revising. I do write programs as you said(in a limited version). I just want to know any question sets available to do one like self test in our K&B.
Because I'll get turn on to slove more or think towards only when I've questions.

Generally speaking how many months does one require to be ready to take exam? Because I'm gonna out of time within 2 1/2 months to my next quater. And I should be done with this SCJP.


Thanks,
Kavitha
 
author
Posts: 9034
21
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I totally agree with "code, code, code"...

One idea is that every mock exam question you look at (whether it's from K&B or some other source), has the potential to be a small program that you can recreate and study, and modify, and test, and in general futz around with. So find a question you have some doubts about, type it in, compile it, run it, tweak it, compile and run again.

hth,

Bert
 
kavitha yogaraj
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bert Bates wrote:I totally agree with "code, code, code"...

One idea is that every mock exam question you look at (whether it's from K&B or some other source), has the potential to be a small program that you can recreate and study, and modify, and test, and in general futz around with. So find a question you have some doubts about, type it in, compile it, run it, tweak it, compile and run again.

hth,

Bert




Thanks Bert,
I would try to get along with the term "code,code,code"... with any question I come accros..
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Prasad Kharkar wrote:code code code means
following

suppose you are studying the Exceptions chapter
and you know the purpose of try catch finally
but for studying thoroughly
you do following things
1. write small programs that demonstrate each combination of try catch block (means check whether we can write catch after finally or only try block etc etc )
2. do separate programs for that
3. generally we throw exceptions in try block only but see what is the result if you throw exception in catch block or the finally block
4. we write return statements in methods but try to return from catch block, finally block, try block and see what happens
5. when using exceptions of same inheritance tree, try changing the order of catch blocks to catch exceptions

Now suppose you are studying for inner classes
then you should take into considerations following questions
1. can a class contain an inteface?
2. Can a static nested class extend a non static inner class?
3. can we extend an inner class from one outer class into another inner class from another outer class?

when studying for threads
check following

1. try to synchronize code
2. write separate programs by creating threads by both extending Thread class and implementing Runnable interface



and when you write programs
give meaningful names to your classes
and comment them when you need it
that too because if you are going for the exam tomorrow and you need a quick revision of the concepts
you have learned through programming then you can read those comments

I am giving a sample program I had written for the preparation






Prasad,

Can you please check your private message and respond?
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic