Can we use synchronized block for primitives?
No Answer is Posted For this Question
Be the First to Post Answer
What is Remote Interface ?
Features of Java?
What is a lightweight component?
what is difference between throw and throws in exception?
Why java is not a pure object oriented language?
Is it possible to instantiate the abstract class?
Why is java so important?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What is object data type?
Can we use string in switch case in java?
How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }
class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); }