What is the main difference between C++ and Java

Answer Posted / kalyan

c++ is platform dependent and java is platform independent language. system programming is written using c,c++ and web based applications can be developed by java.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you explain polymorphism?

821


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1905


What is balance factor?

833


Which type does string inherit from?

858


What is abstraction with example?

843


What is the difference between encapsulation and polymorphism?

852


Is abstract thinking intelligence?

810


What does oop mean in snapchat?

941


What are the important components of cohesion?

770


What is object and example?

894


what is graphics

2223


This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.

1881


What are the three main types of variables?

843


Why is oop better than procedural?

821


How oops is better than procedural?

843