Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2007, 05:39 PM
Member
 
Join Date: Jul 2007
Posts: 44
simon is on a distinguished road
doubt about synchronized
I have a method which is a synchronized method (for example, method Foo in the following code block) and in this synchronized method another method which is not synchronized is invoked (for example, method Goo in the following code block). I'm wondering when executing in Goo from Foo, whether we still have the synchronized feature
Code:
synchronized public Foo() { Goo(); } private Goo() { }
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-01-2007, 01:34 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,022
hardwired is on a distinguished road
As far as the callers of Foo are concerned, yes. But who else can be calling Goo besides Foo?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-05-2007, 04:49 AM
Member
 
Join Date: Jul 2007
Posts: 44
simon is on a distinguished road
ok, thanks hardwired
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
doubt shaju_inspira Sun Java Wireless Toolkit 0 01-18-2008 09:38 AM
doubt in jms veena Enterprise JavaBeans 2 01-05-2008 02:42 PM
Please clear my doubt............... vinaytvijayan Advanced Java 0 12-26-2007 07:23 PM
synchronized bugger New To Java 2 11-28-2007 11:33 AM
Return in the Middle of synchronized Block ariak Advanced Java 1 07-26-2007 11:24 AM


All times are GMT +3. The time now is 12:28 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org