what is the difference between Cpp And Java
Answer Posted / segi reddy
1. cpp is platform dependent where as java is platform
independent.
2. #define, typedef are available in cpp where as in java
others are availble to achieve it.
3. goto statement is there in Cpp where as in java it is
not available.
4. there are 4 types of access specifiers are available in
java and in Cpp only 3 types are available.
5. No header files in Java.
6. no Pointers concept in java.
7. Destructors are not available in java
| Is This Answer Correct ? | 29 Yes | 1 No |
Post New Answer View All Answers
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
What are new features introduced with java 8 ?
how is final different from finally and finalize in java?
How to handle a web browser resize operation?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
What is the use of bufferedreader?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is a boolean expression in java?
What is a lock or purpose of locks in java?
Describe the process as to how substring() methodology mechanisms in java.
What do you understand by final value?
What is the meaning of nullable?
Is a method a function?
What is null statement?
How do you sort arrays in java?