answersLogoWhite

0

Java was primarily derived from C and C++. It inherits C's syntax and structure, making it familiar to many programmers, while incorporating object-oriented features from C++. Additionally, Java was designed to address some of the complexities and issues present in C and C++, such as memory management and platform dependency.

User Avatar

AnswerBot

∙ 1y ago
User Avatar

What else can I help you with?

Continue Learning about Engineering

What is different between Android and java?

Android is an Operating System that runs on specific devices and controls those devices' functions. Java is a general programming language that can run on many different devices (computers, phones, tablets, and so on), one of which is Android. Thus, the comparison of the two are that they are completely different, with the only relation between the two is that Android runs Java programs.


I am coming up to the point in my bachelors degree where I have to pick my programming languages Here are my options Visual Basic C plus plus or Java I can pick two Which are better for the industry?

To standardize the industry with simple solutions would be to limit yourself to one or the other. The good news is that when learning one, the knowledge of the other is part of the process. The better financial situation is to gain the strategic knowledge in Java thus being able to gain acces to tons of open(free) code and applications. antcpu.com


What is the difference between a programming language and an Application Programming Interface?

Application programming languages are high-level languages intended specifically for applications development. Such languages are not suitable for low-level software development, such as operating systems, hardware device drivers or subsystem programming. Java is an application programming language. Java programs are compiled against a virtual machine rather than a physical one. This is what makes Java such a highly portable language: the virtual machine presents the programmer with exactly the same interface regardless of the underlying architecture, thus programmer need not concern themselves with the machine-specifics; that is handled entirely by the Java virtual machine. Programs need only be compiled once and the resultant code can be executed on any machine with a suitable Java virtual machine implementation (which is pretty much all hardware these days). However, as a result of the interpretation between the virtual and physical machines, Java programs not only execute much more slowly than their machine-code counterparts, they also have no low-level access to the underlying architecture other than through the higher level abstractions provided by the Java virtual machine. As a result, Java cannot be used to produce general purpose software. C++, on the other hand, is both general purpose and cross platform. It can be used to develop any type of software on any machine for which a suitable C++ compiler implementation exists. The compiler need not execute upon the target machine but it obviously has to be capable of producing the machine-code required by the target machine. While machine-code programs have much faster execution times than an interpreted byte code such as compiled Java, cross-platform programs must be recompiled individually for each supported architecture. Nevertheless, C++ provides low-level access to the hardware to the extent we very rarely need to use anything more low-level than C++, such as C or assembly.


Is it possible to have a completely graphical programming language?

Almost any computer language can do GUI manipulations if provided by a GUI library. Some can be add-ons because the language itself does not have a direct method of doing GUI drawing, etc.Languages such as C and C++ for example do not have a native GUI interface because they are not tied directly to a machine architecture or to an operating systems platform. However, that is not to say that they cannot do GUI manipulations; it just isn't built into the language, but there are 3rd party add-ons that do the manipulations for you.Other languages, such as C# and Java, have built-in gUI libraries that work the same way regardless of the Operating System they are on. In that way they support GUI operators natively, without the use of an add-on GUI library.


When to use Inheritance in C?

Assume the question was for C#, not C.":" is syntax to extend a type. If the type extended from is another class, they form a class hierarchy and the "inheritance" is established:For example:class Base {}class Derived : Base {}Derived extends Base, and thus inherits from Base.

Related Questions

Why is there need for different programming languages?

Confusing, isn't it? Having to deal with several programming languages. Different programming languages have been created, because of insatisfaction with existing languages. Also, attempts have been made to make programming languages better every time. Also, some languages have been developed for specific purposes - for example, ActionScript was specifically developed to give programming capabilities to Flash animations. Some languages have been developed just for fun. For example, a language called brainf*** was deliberately made hard to understand - but the language is still "Turing-complete", which basically means that in theory, anything can be programmed with it. Let me give a few examples. C++ evolved from C, adding object-oriented capabilities. But in the process, compatibility with C was retained; this was an important design goal. On the other hand, the developers of Java took many of the elements of C++, but eliminated certain aspects which they considered unsafe. Thus, Java is similar to C++, but it is not compatible - a program designed in C++ will not compile in Java.


Where can one learn about video game programming?

Modern video games are written in one of several languages, such as C++ and Java. Thus, learning one of these languages would be a good place to start. Java has an official set of tutorials known as the "Java Tutorials." Youtube is another good resource, as it contains many instructional videos. For a more formal education on the topic, take computer science classes at a local college.


What is the difference between object oriented programming language and object based programming language?

Object-oriented programming (OOP) languages, like Java and C++, support full-fledged object-oriented principles such as inheritance, polymorphism, and encapsulation. In contrast, object-based programming languages, like JavaScript and VBScript, support the use of objects but do not fully implement all OOP concepts, particularly inheritance. Thus, while both paradigms use objects to model data, OOP languages provide a more robust framework for building complex systems with a strong emphasis on reusable code through inheritance.


Is there any way to apply class diagram with structured programming language like C?

No. Class diagrams only apply to object-oriented languages where one class can inherit or derive from another. There is no inheritance model in C, thus data structures cannot be derived.


Can we go beyond the 5th generation programming language please explain why?

We can't even go beyond the third generation. The first generation languages are all the native machine code languages. The second generation languages are the low-level symbolic languages such as assembly language. The third generation languages are all the high-level symbolic languages, such as C, C++, Java, Pascal, Cobol and so on. There are no fourth generation languages. The term "fourth generation" was first used by marketing types to make their third generation languages seem superior to other third generation languages, regardless of what features they actually provided. While there have been several attempts to re-classify third-generation languages, there is no standardised convention and thus no way to compare languages objectively by generation alone. Languages are best classified by the paradigms they support (procedural, structured, object-oriented, functional, logical and so on) and/or the domains they operate within (general purpose programming, artificial intelligence programming, and so on).


What is the basis of the name of Latin America?

Spanish and Portuguese are the predominant languages of South America. It is a region of America where Romance languages are spoken. That means those derived from Latin, thus the title Latin America.


What is different between Android and java?

Android is an Operating System that runs on specific devices and controls those devices' functions. Java is a general programming language that can run on many different devices (computers, phones, tablets, and so on), one of which is Android. Thus, the comparison of the two are that they are completely different, with the only relation between the two is that Android runs Java programs.


I am coming up to the point in my bachelors degree where I have to pick my programming languages Here are my options Visual Basic C plus plus or Java I can pick two Which are better for the industry?

To standardize the industry with simple solutions would be to limit yourself to one or the other. The good news is that when learning one, the knowledge of the other is part of the process. The better financial situation is to gain the strategic knowledge in Java thus being able to gain acces to tons of open(free) code and applications. antcpu.com


What is the difference between a programming language and an Application Programming Interface?

Application programming languages are high-level languages intended specifically for applications development. Such languages are not suitable for low-level software development, such as operating systems, hardware device drivers or subsystem programming. Java is an application programming language. Java programs are compiled against a virtual machine rather than a physical one. This is what makes Java such a highly portable language: the virtual machine presents the programmer with exactly the same interface regardless of the underlying architecture, thus programmer need not concern themselves with the machine-specifics; that is handled entirely by the Java virtual machine. Programs need only be compiled once and the resultant code can be executed on any machine with a suitable Java virtual machine implementation (which is pretty much all hardware these days). However, as a result of the interpretation between the virtual and physical machines, Java programs not only execute much more slowly than their machine-code counterparts, they also have no low-level access to the underlying architecture other than through the higher level abstractions provided by the Java virtual machine. As a result, Java cannot be used to produce general purpose software. C++, on the other hand, is both general purpose and cross platform. It can be used to develop any type of software on any machine for which a suitable C++ compiler implementation exists. The compiler need not execute upon the target machine but it obviously has to be capable of producing the machine-code required by the target machine. While machine-code programs have much faster execution times than an interpreted byte code such as compiled Java, cross-platform programs must be recompiled individually for each supported architecture. Nevertheless, C++ provides low-level access to the hardware to the extent we very rarely need to use anything more low-level than C++, such as C or assembly.


Is it possible to have a completely graphical programming language?

Almost any computer language can do GUI manipulations if provided by a GUI library. Some can be add-ons because the language itself does not have a direct method of doing GUI drawing, etc.Languages such as C and C++ for example do not have a native GUI interface because they are not tied directly to a machine architecture or to an operating systems platform. However, that is not to say that they cannot do GUI manipulations; it just isn't built into the language, but there are 3rd party add-ons that do the manipulations for you.Other languages, such as C# and Java, have built-in gUI libraries that work the same way regardless of the Operating System they are on. In that way they support GUI operators natively, without the use of an add-on GUI library.


When to use Inheritance in C?

Assume the question was for C#, not C.":" is syntax to extend a type. If the type extended from is another class, they form a class hierarchy and the "inheritance" is established:For example:class Base {}class Derived : Base {}Derived extends Base, and thus inherits from Base.


Why do we use programming languages?

A computer can carry out millions, even billions, of operations every second. Thus, it can do things much faster - and usually much more accurately - than a human. To tell the computer what to do, you write instructions in a special language, called a "programming language".To be accurate, internally the computer uses very specific instructions, the so-called "machine language". Since programming in machine language is awkward, programmers program in higher-level languages, that are easier to understand for humans - such as Assembly language, Java, C, Pascal, etc. Then, a special program called a "compiler" then converts this to instructions the computer can understand.A computer can carry out millions, even billions, of operations every second. Thus, it can do things much faster - and usually much more accurately - than a human. To tell the computer what to do, you write instructions in a special language, called a "programming language".To be accurate, internally the computer uses very specific instructions, the so-called "machine language". Since programming in machine language is awkward, programmers program in higher-level languages, that are easier to understand for humans - such as Assembly language, Java, C, Pascal, etc. Then, a special program called a "compiler" then converts this to instructions the computer can understand.A computer can carry out millions, even billions, of operations every second. Thus, it can do things much faster - and usually much more accurately - than a human. To tell the computer what to do, you write instructions in a special language, called a "programming language".To be accurate, internally the computer uses very specific instructions, the so-called "machine language". Since programming in machine language is awkward, programmers program in higher-level languages, that are easier to understand for humans - such as Assembly language, Java, C, Pascal, etc. Then, a special program called a "compiler" then converts this to instructions the computer can understand.A computer can carry out millions, even billions, of operations every second. Thus, it can do things much faster - and usually much more accurately - than a human. To tell the computer what to do, you write instructions in a special language, called a "programming language".To be accurate, internally the computer uses very specific instructions, the so-called "machine language". Since programming in machine language is awkward, programmers program in higher-level languages, that are easier to understand for humans - such as Assembly language, Java, C, Pascal, etc. Then, a special program called a "compiler" then converts this to instructions the computer can understand.