kotlin vs java

In Java there are 2 different types of programs, namely applications and applets. Both are part of execute, where execute is one of the fifth phases in the Java program cycle. An application is a program that is usually stored and executed from a local computer. Applets are programs that are usually stored on a remote computer, which the user connects via a web browser.
The remote computer runs a web server that provides services to web browser requests. Most modern programming languages stand on existing class libraries to support the language functionality. In the Java language, closely related class groups are included in one package, varying according to the Java edition. Java is a language that can be run anywhere and on any platform, in a variety of environments such as: the Internet, intranets, consumer electronic products, and computer applications. For various applications created in the Java language, Java is bundled in the following editions:
 • Java 2 Standard Edition (J2SE), J2SE provides a feature-rich, stable, secure, and cross-platform development environment. This edition supports database connectivity, user interface design, input / output, and network programming, and is included as a basic Java language package.
 Java 2 Enterpise Edition (J2EE), J2EE provides a place to build and run multitier enterprise editions. J2EE contains packages in J2SE plus packages to support the development of Enterprise JavaBeans, Java Servlets, JavaServer Pages, XML, and flexible transaction control.
 • Java 2 Micro Edition (J2ME), J2ME in addition to providing the same Java language, excels in portability (the ability to run anywhere), safe network delivery, such as J2SE and J2EE. Applications can be scaled (enabled) to work with J2SE and J2EE. J2ME is for a variety of consumer electronic products, such as pagers, smart cards, cell phones, handheld PDAs, and set-top boxes.
There are 3 key combinations that make Java a technology that is fundamentally different from the others, which exist today. First, anyone can use applets that are small, secure, dynamic, cross-platform, active, and ready to run on the network from the start. Second, Java is a powerful programming language, has the power of object-oriented design with a syntax that is simple and easy to recognize. Third, Java is a powerful collection of object classes, which serve programmers with clear descriptions of many common system functions, such as window creation, network usage, and input / output.

Some Important Features in the Java Language
 Simple Language
 Explicit pointer manipulation
 Implicit type casting
 Structures or union
 Overloading operators
 Templates
 Header files
 Multiple inheritance
Java is designed to be easily learned and used effectively. Java does not support complicated features such as:
The design of the Java language has been based on proven technology and has been developed in other programming languages.

Object oriented language
The Java object model is simple and easy to develop, but in line with that, numbers and other simple data types are considered as high-performing non-objects.
OOP (object oriented programming) is a powerful way of organizing and developing software. In OOP, a computer program as a group of objects that interact with each other. These objects exist independently which have rules for communicating with other objects and to order other objects to request certain information or ask other objects to do something.

• Statically typed language
All objects are declared before they are used. Through this feature, the program code can be optimized to produce high-performance programs.

Language compiled
Before running a program in the Java language, the program is compiled using Java Compiler. Kompilais will produce a “bytecode” file that is similar in function to a machine code file. The resulting “bytecode” program can be executed in any Java Interpreter. Java Interpreter reads the file “bytecode” and translates the “bytecode” command into machine language commands that can be executed by the machine.

Safe language

  1. Theytecode verifier reads the bytecode before it is run and guarantees that the bytecode meets the basic rules of the Java language.
  2. The class loader handles loading Java classes into the runtime interpreter.
  3. The security manager handles application-level security by controlling whether the program has the right to access resources such as file systems, network ports, external processes and windowing systems.
  4. Languages are designed to complicate execution of destructive code
  5. The Java program is compiled into a series of bytecodes.
  6. Java has security for applets.
    Java uses a 3-layer security model to protect the system from Untrusted Java Code. In addition, Java provides a variety of safety techniques, namely:

Language is independent of the platform
Platform independence is the ability of programs to work on different operating systems or computer systems. The Java language is a language that is completely platform-independent.

• Multithreading language
Thread is stating that a computer program performs more than one task at a time. Java provides tools for writing multithread programs, the program has more than 1 execution thread at the same time so that the program allows to handle several tasks concurrently.

Language supported by the garbage collector
That is, the program does not need to delete objects that are not used anymore. This facility reduces the burden of memory management by programmers and reduces or eliminates the biggest source of errors found in languages that allow dynamic allocation.

Strict language
Java interpreter checks all system accesses that are performed. Java programs cannot crash the system. Java has a powerful exception handling mechanism. Exception-handling provides a way to separate the error handling section from the normal code section so that it leads to a cleaner program code structure and makes the application tougher.

In Java there are known as tokens. A token is the smallest element in a program that has meaning for the compiler. The compiler is tasked with reading the characters in the source code and applying the rules progressively into larger chunks such as identifiers, expressions, sentences, and classes. Java tokens are divided into 5, namely:

  1. Identifier
  2. Keyword
  3. Literal
  4. Operators
  5. Separator

An identifier is a token that represents a name. In Java, an identifier is the name given to a variable, class, or method.

Keyword (keyword) is a dentifier used in Java for a specific purpose. The list of Java keywords is as follows: abstract, Boolean, Break, Byte, byvalue, Case, Catch, Char, Class, Const, continue, default, Do, double, else, extends, false, final, finally, float, for, goto, if, implements, import, instanceof, In, Interface, Long, Native, New, Null, Package, private, protected, public, return, short, static, Super, Switch, synchronized, This, thread safe, throw Transient, True, Try, Void, while.

Writing magnitudes for variables is important, Java literals consist of numbers, characters, and strings. Numbers consist of integers, floating points, and booleans. Boolean values for true and false are represented as 1 and 0.

The operator specifies an evaluation or computation of an object. Operands that can be operated can be literals, variables, or values sent by methods or functions.

Separators are used to inform the Java compressor about grouping in program code. The following is a list of separators used in Java:

Symbol Name Use
( ) Brackets To collect parameters in the definition and method calls, it is also used to declare the level of statements, collect statements, to set program flow, and to declare cast types
{ } Curly brackets To collect values that are automatically entered into an array, it is also used to define program blocks, for class, method, and local scopes.
[ ] Curly bracketsl To declare an array type and to distinguish array values.
; Semicolon Statement Separator.
, Coma Separator sequence identifier in the variable declaration.
. Point To separate package names from sub-packages and classes and to separate variables or methods from reference variables.


Please enter your comment!
Please enter your name here