What is the difference between C++ & Java?

Answer Posted / priyal rathod

Java supports only LOCAL variable where as C++ supports
LOCAL & GLOBLE variable both

Is This Answer Correct ?    16 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is preparedstatement in java?

553


What is the difference between ArrayList and Vector? which one is better in Java

597


What is a predicate method?

560


What do you mean by hashing?

641


What is nextline method in java?

551






Explain the polymorphism principle?

575


How will you initialize an Applet?

614


Why spring singleton is not thread safe?

560


Why do we use return statement?

533


What happens when a thrown exception is not handled?

576


What is the implementation of destroy method in java. Is it native or java code?

475


What is a Hash Table? What are the advantages of using a hash table?

603


Why is the singleton pattern considered to be an anti pattern?

469


What are different access specifiers in java?

555


What is the difference between an inner class and a sub-class?

503