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


Please Help Members By Posting Answers For Below Questions

What is a super method?

534


Which access specifier can be used with class ?

537


What is a null class?

575


How to reverse a string in java?

526


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; }

1849






What do you mean by object?

552


What is size_t?

508


What are the core java topics?

569


What does || || mean in math?

517


What are byte codes?

659


What do you mean by ordered and sorted in collections in java?

555


What is the purpose of garbage collection in java?

656


Define iterator and methods in iterator?

547


How does the garbage collector works in java?

574


What is comparable and comparator interface? List their differences

582