what is the main differene between synchronize() method and
Synchronize{}block?



what is the main differene between synchronize() method and Synchronize{}block?..

Answer / rupak

Synchronize{}block is use to Synchronize the block of
statements.
synchronize() keyword is useful to synchronize an entire method.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why hashcode is used in java?

0 Answers  


What is an association?

0 Answers  


What is the purpose of the system class in java programming?

0 Answers  


what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

0 Answers  


How do you compare two strings? any predefined method for this?

3 Answers  


When should I use singleton pattern?

0 Answers  


What does java se mean?

0 Answers  


Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

2 Answers   iGate, Seed Infotech,


What is the GregorianCalendar class?

2 Answers   HCL,


What will happen if we cannot mention "finally" in Java Program ???

3 Answers   PWC,


what is the use of servlet engine?

2 Answers   Photon,


Can we override private method in java?

0 Answers  


Categories