Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
1604How to call the m1() method of Base class in below snippet ? class Base { public void m1() { System.out.println("Base m1 "); } public void m2() { System.out.println("Base m1 "); } } ====================== class Derived extends Base { public void m1() { System.out.println("Derived m1"); } public void m3() { System.out.println("Derived m3"); } public static void main(String[] args) { Base ob=new Derived(); ob.m1(); //System.out.println("Hello World!"+ob.m1()); } }
6 7100what are advantages of HQL? what are advantages of Native SQL? what are advantages of Criteria API?
1 10934Post New TCS Java J2EE AllOther Interview Questions
Can we modify the attribute's value of the html tag dynamically?
What is the duty cycle in on-off control method?
A solar collection has been installed to heat water. A large water tank has a volume of 5.0 x 105 cm3. The area of the solar collectors is 8m2. (2 meters by 3 meters). If the water in the tank starts out with a temperature of 30°C in the morning, what is its temperature in the evening after the sun has set?
What is a ledger account?
What are the main factors that alter the speed of enzymatic reactions?
Who coined the term Internet of Things (IoT) and when?
What is difference between dll and exe in c#?
Is google docs better than word?
How do I copy an object in python?
What is difference between header and line level billing?
What is the advantage of extension method in c#?
How many types of keys are there in keyboard?
What is the first thing you do after vendor setup is complete?
Explain the key differences between localstorage and sessionstorage objects.
What is c++ best used for?