What is the difference between C++ & Java?

Answer Posted / s.palanivel rajan.,b.e

Java is pure object orientef language but C++ is not because
we can write a c++ pprogram without using class or object...

The techniques which are not supported in java nut supported
by c++ are...

POINTERS
STRUCTURES
OPERATOR OVERLOADING
MULTIPLE INHERITANCE
GOTO OPERATOR
AUTOMATIC TYPE CONVERSION
DESTRUCTOR
UNSIGNED INTEGER

Is This Answer Correct ?    21 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

614


There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

1004


Does isempty check for null?

561


What are the methods available in a class?

587


what do you mean by stream pipelining in java 8? Explain

536






What is getclass () getname () in java?

683


How to sort an array in java without using sort method?

528


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1079


Can a class extend more than one class?

615


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

596


Explain the difference between abstraction and encapsulation.

539


What is local class in java?

524


Describe the Big-O Notation.

619


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 is an empty list in java?

534