What is the difference between C++ & Java?
Answer Posted / saket
C++ supports multiple inheritence but Java provides
interfaces in case of multiple inheritence.
Is This Answer Correct ? | 399 Yes | 28 No |
Post New Answer View All Answers
What is a super method?
Which access specifier can be used with class ?
What is a null class?
How to reverse a string 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 do you mean by object?
What is size_t?
What are the core java topics?
What does || || mean in math?
What are byte codes?
What do you mean by ordered and sorted in collections in java?
What is the purpose of garbage collection in java?
Define iterator and methods in iterator?
How does the garbage collector works in java?
What is comparable and comparator interface? List their differences