<<< The syntax for creating a synchronized method | Index | Synchronized blocks in instance methods >>> |
public synchronized int getInvoiceNumber()
{
return invoiceNumber++;
}
<<< The syntax for creating a synchronized method | Index | Synchronized blocks in instance methods >>> |