Questions tagged [java]

Java (not to be confused with JavaScript) is a general-purpose object-oriented programming language designed to be used in conjunction with the Java Virtual Machine (JVM). "Java platform" is the name for a computing system that has installed tools for developing and running Java programs. Use this tag for questions referring to Java programming language or Java platform tools.

Java is a high-level, platform-independent, object-oriented (OOP) programming language and run-time environment.

The Java language derives much of its syntax from C and C++, but its object model is simpler than that of C++ and it has fewer low-level facilities. Java applications are typically compiled to bytecode (called class files) that can be executed by a JVM (Java Virtual Machine), independent of computer architecture. The JVM often further compiles code to native machine code to optimize performance.

The JVM manages memory with the help of a garbage collector in order to handle object removal from memory when not used any more. Java supports features such as reflection and interfacing with C and C++ via JNI.

Java is designed to have as few implementation dependencies as possible, intended to allow application developers to "write once, run anywhere" (WORA): code that executes on one platform does not need to be recompiled to run on another machine. Java was originally developed by [James Gosling] at Sun Microsystems (which merged with Oracle Corporation on April 20, 2009) and was released in 1995 as a core component of Sun Microsystems' Java platform.

The [Java platform] is the name given by Sun (now Oracle) to computing systems that have installed tools for developing and running Java programs. The platform features a wide variety of tools that can help developers work efficiently with the Java programming language.

The platform consists of two essential software packages:

  • the Java Runtime Environment (JRE), which is needed to run Java applications and applets; and,
  • the Java Development Kit (JDK), which is needed to develop Java applications and applets. The JDK comes with a JRE.

In this section, we will explore in further detail what these two software components of the Java platform do.

41 questions
1
vote
2 answers

How to send multiple data from PC to arduino

I have a project in arduino that i interface with java. The arduino is connected to the computer via usb cable , I use the serial communication. I have two variables: //Code in arduino int ADelay = 1000; int BDelay = 1000; I want to change the…
kaisar Great
  • 111
  • 1
  • 5
  • 11
-1
votes
1 answer

How to change the variable value on arduino program using java?

I am new to arduino and I want to interface it using java . I want to know is there a way to change the variable or set the variable using the input from java :D Thanks For reading Hope you can answer my question .. Sorry for my english not my first…
kaisar Great
  • 111
  • 1
  • 5
  • 11