Posts

Showing posts from January, 2023

Difference between cpp and java.

Image
Difference between c++ and java Difference between c++ and java C++ Java 1) C++ is platform-dependent. 1) Java is platform-independent. 2) C++ is mainly used for system programming. 3) Java is mainly used for application programming. It is widely used in Windows-based, web-based, enterprise, and mobile applications. 4) C++ was designed for systems and applications programming. It was an extension of the C programming language. 4) Java was designed and created as an interpreter for printing systems but later extended as a support network computing. 5) C++ supports multiple inheritance. 5) Java doesn't support multiple inheritance through class. It can be achieved by using interfaces in java. 6) C++ supports operator overloading. 6) Java doesn't support operator overloading. 7) C++ supports pointers. 7) Java supports pointer internally. we cannot declare expl

Features Of Java Programming Language.

Image
Features Of Java  Features Of Java Programming Language Simple Object Oriented  Compiler And Interpreter Platform Independent Secured Programming Language  Multithreaded  Ruble And Strong Programming Language  Distributed Support Exception Handling. Simple Java is a simple programming language all the syntax in java based on c and c++.  Java has removed many complicated features explicit pointers, operator overloading, etc.  There is no need to remove unreferenced objects because there is an automatic garbage collection in java. Object oriented      Java is an object oriented programming language. Is a methodology in which application program can be develop using classes and object so it is simplifies software development and maintenance by providing some rules. Basic concepts of OOPs are:  Class.  Object.  Inheritance.  Polymorphism.  Abstraction.  Encapsulation. Compiler And Interpreter       Java programming language has the fechar of both Compiler and Interpreter. Java source code

Features Of Java

Multithreaded      Java is a multithreaded programming language that can be run two or more than two tasks of one program simultaneous or concurrently the main advantage of multi-threading is that it doesn't occupy memory for each thread. It shares a common memory area. Threads are important for multi-media, web applications, etc. Ruble And Strong       Java is strong programming language because it uses strong memory management. There is no pointers that avoid security problems. Java provides automatic garbage collection which runs on the Java Virtual Machine. which is destroy object which are not being used. Distributed      Java is distributed programming language which proved facilitates users to create distributed applications using ejb we are used for creating distributed applications. This feature of java makes us able to access files by calling the methods from any machine on the internet. Support Exception Handling      java programming language Support Exception Handling