Is there any use of an abstract class which has no methods
and no attributes?
Answer Posted / amit2009mca
i think no use of that
we use some marker interface instead of Abstart class which
have no method and no attributes
like Cloneable And Serializable
if any one other thing then mail me.
Amit singh09 amitsing2008@gmail.com
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How many bits is size_t?
Difference between final and effectively final ?
How to run a JAR file through command prompt?
how to create constants in java?
State some advantages of java?
Why is a string immutable?
what is nested class in java?
Does java allow default arguments?
Can we override tostring method in java?
public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }
What is the difference between C++ and Java and your preferences?
What is difference between an object and a class?
Can we convert stringbuilder to string in java?
How strings are created in java?
Explain the differences between abstraction and encapsulation?