What is method in java with example?
What is linked hashset and its features?
Explain how to convert any java object into byte array.
abstract class Demo { public void show() { System.out.println("Hello I am In show method of Abstract class"); } } class Sample extends Demo { public void show() { super.show(); System.out.println("Hello I am In Sample "); } } public class Test { public static void main(String[] args) { //I WANT TO CALL THE METHOD OF BASE CLASS IT IS POSSIBLE OR NOT CAN WE USE SCOPE RESOLUTION OPERATOR TO CALL OR JAVA NOT SUPPORTED THAT :: OPERATORE } }
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 its run?
What is the difference between multitasking and multithreading in Java
0 Answers Sans Pareil IT Services,
what is class.forname() and how it will be useful ?
What is ‘has a’’ relationship in java?
Name and explain the types of ways which are used to pass arguments in any function in java.
Difference between == and .equals() ?
How can final class be used?
Why does java have two ways to create child threads? Which way is better?