Skip to main content

What is Java?




The first thing we need to understand to get started is exactly what is Java? When someone says Java, what are they talking about?

Well, Java is a programming language, but Java is also a runtime environment. It's both of those things. So, when we think about the programming language, it has things like the syntax, the data types, control flow, like looping and conditional statements and being objectoriented, right, doing inheritance, and so forth. And then runtime, of course, must support those things, but it also provides things like configuration, security, a threading model, input/output, that sort of thing. So, when someone says Java, they could be referring to a programming language or the runtime environment or the whole thing. Now in general, the runtime environment someone is talking about when they just say Java is often referred to as Java Standard Edition. Right, that's kind of the basic Java environment. But it also provides other environments that derive from that, Enterprise Edition, Java Micro Edition, and Java FX. So those are all either supersets or subsets of this main thing, which is just the Java Standard Edition. But the thing that's neat about Java, it's so flexible that there are even run times that are not tied to the Java one produced by Oracle. Right, Android is kind of most well-known one. Android provides a very different runtime than the standard Java run times from Oracle. The thing is, though, that all those environments support effectively the same Java programming language, right. So that one language equips us the work in all those different places.


Comments

Popular posts from this blog

Types of Recording

Types of Recording: 4 types of recording modes are available Ø   Basic Ø   Desktop Ø   Web Ø   Citrix 2 ways of Recording Ø   Automatic Ø   Manual Basic – generates a full selector for each activity and no container, the resulted automation is slower than one that uses containers and is suitable for single activities. Desktop – suitable for all types of desktop apps and multiple actions; it is faster than the Basic recorder, and generates a container (with the selector of the top-level window) in which activities are enclosed, and partial selectors for each activity. Web – designed for recording in web apps and browsers (supported: Internet Explorer, Google Chrome), generates containers and uses the Simulate Type/Click input method by default. Citrix – used to record virtualized environments (VNC, virtual machines, Citrix, etc.) or SAP, permits only image, text and keyboard automation, and requires explici...

Variables, Data Types and Math Operations

  In order to do anything interesting in a program, we must have the ability to store and manipulate values. What allows us to do that are what we call variables. Now a variable, simply put, is just named data storage. Now Java is a strongly ‑ typed language. Now what that means is that when we declare a variable like, in this case, we have a variable named data Value, we have to specify the type of that variable, in this case, it's what we call an int, something that can store integers. So, what that means is that the data Value variable can only store things that are compatible with the type int. As we go through the course, we'll talk about this idea of one type being compatible with another. Now when we declare a variable, we can, of course, then assign a value to it, so our variable data Value now holds the value 100. Now when we use variables, we can do it the way we've done here where we declare it, then assign it, or as a matter of convenience, we can declare them a...

Variable

Variable           Ø   Variable is nothing but a memory location             Ø   It holds multiple types of data             Ø   Data stored in Variable is named as ‘Value’             Ø   Supports a large amount of types, ranging from generic value, text, number, data table, time and date, UI                    Elements to any .Net variable type. Create a Variable: On the Design ribbon tab, in the Variables group, select Create Variable > [Type of variable] . The Create Variable window is displayed Fill in the required fields and click OK . The variable is created and you can view and edit it in the Variables panel. 1.In the Properties panel of any activity, right-click a field that can be edited, and select Create Variable from the context menu, or press Ctrl+K....