What does java do
Current day processor is capable of decoding bit time. But what is the relation of this concept with the programming language JAVA? Let understand these as an example. Yes, we are going to use assembly language to get our code executed. We are going to give the command to a computer in this format, as shown below. Your code to add two numbers in this language would be in this order.
But how are we going to do this? Later, this code will be punched into the machine cards and feed to the computer. The computer will read these codes and execute the program. It converts it into the corresponding machine code But alone the assembler is not involved in this process; it also requires the compiler to compile the long code into a small chunk of codes.
It is used to convert your c language code into assembly code. The assembler converts it into corresponding machine code. This machine code will be transmitted to the processor.
The most common processor used in PC or Computers are the Intel processor. Though present-day compilers come bundled with assembler can directly convert your higher language code into machine code. The most common platform in the world is Windows, and Intel is called the Wintel Platform.
As a developer, I want my software program to work on all platforms to maximize my revenues. So I would have to buy separate compilers that convert my print f command into the native machine code. But compilers come expensive, and there is a chance of compatibility issues. So buying and installing a separate compiler for different OS and processor is not feasible. So, what can be an alternative solution? Enter Java language.
By using Java Virtual Machine , this problem can be solved. But how it works on different processors and O. Step 1 The code to display the addition of two numbers is System. Step 2 Using the java compiler the code is converted into an intermediate code called the bytecode.
The output is a. Step 3 This code is not understood by any platform, but only a virtual platform called the Java Virtual Machine. When the Virtual Machine is fed with this bytecode, it identifies the platform it is working on and converts the bytecode into the native machine code. While working on your PC or browsing the web, whenever you see either of these icons, be assured the java virtual machine is loaded into your RAM.
But what makes Java lucrative is that code, once compiled, can run not only on all PC platforms but also on mobiles or other electronic gadgets supporting Java. Like the C compiler, the Java compiler does not produce native executable code for a particular machine. Instead, Java produces a unique format called bytecode. It executes according to the rules laid out in the virtual machine specification. Therefore, Java is a platform-independent language.
In short, the java source code can run on all operating systems. Skip to content. There's also the world of gaming, ranging from adventure video games to implementations of popular board games. Interested in exploring augmented reality? Pokemon Go, a mobile game which uses augmented reality, was partly built with Java. And some popular games like Minecraft don't just have Android versions—the original Minecraft was actually built with Java. Want to work with big data?
Java should be part of your skill set. Java is fast and reliable, which makes it a great choice when you're working with data. Apache Hadoop, which is designed for processing large data sets, is built in Java. Apache Kafka, which was developed at LinkedIn for working with massive amounts of real-time data, is written in Java and Scala. We also use Kafka at New Relic to ingest large amounts of data, allowing users to observe errors and anomalies throughout their applications.
Elasticsearch , a powerful search engine for ingesting and analyzing data, is also written in Java. Companies like Uber, Slack, and Shopify all use Elasticsearch. Java applications are often referred to as WORA write once, run anywhere , which means the language is perfect for decentralized, cloud-based applications.
When it comes to providing anything as a service, whether that's software, infrastructure, or a platform, Java really is everywhere. Whether that's Netflix, Amazon, or Twitter, Java often powers part or all of the backend stack. And because Java is such a powerful tool for working with big data, it often powers data collection and sharing in cloud-based applications. Want to work on cutting-edge technologies like the software for self-driving cars? If so, it's time to explore machine learning, which is already being used for everything from Netflix for predicting what you'll watch next to Alexa and Siri for voice recognition.
A large number of web sites use JavaScript; very few require Java. With that in mind, we're only going to discuss Java here. That's the really insecure one that's driving everyone crazy. For the answer to your question, read on. Java has two parts: the runtime that runs on your computer and lets you run Java apps , and the browser plug-in that comes along with it. When people talk about Java being insecure, they're talking about the browser plug-in. Java apps themselves aren't inherently insecure, it's the browser plug-in that causes problems.
In fact, Kaspersky Lab says that the Java browser plug-in was responsible for 50 percent of all cyber attacks last year , and security experts are constantly advising that you disable it in your browser. It opens up a number of holes that can allow criminals to steal passwords, credit card numbers, and other personal information.
And, as you've noticed from reading news on the web, new security holes are popping up all the time. Chances are, you don't even need the Java browser plug-in. To disable Java in your browser, head to your browser's plug-in page. Then, just find Java and click Disable. That's all it takes! The browser plug-in is the security problem in question, but the Java runtime has its own annoyances—like constantly nagging you for updates, taking up space in your system tray, and when you first install it because it likes to install things like toolbars on your system.
0コメント