Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
No Answer is Posted For this Question
Be the First to Post Answer
What is public/private protected in java?
hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class
How to provide security in java
0 Answers Infosys, TCS, Tech Mahindra,
What are the application of stack?
What are the operands of instanceof operator?
Can a constructor have different name than a class name in java?
what are the analysis of an object
How do I stop concurrentmodificationexception?
Can each java object keep track of all the threads that want to exclusively access it?
What do you meant by active and passive objects?
is JVM platform dependent or independent..?
11 Answers IBM, Tech Mahindra,
Is string a keyword in java?