Technoledge

Android Learning, Programing, Game and Aplication. with Programing Language

  • Home
  • Privacy Policy
  • Disclaimer
  • Contact Us
skip to main | skip to sidebar
Showing posts with label Java Programming. Show all posts
Showing posts with label Java Programming. Show all posts
Home » Posts filed under Java Programming

Basic of Java programming

Basic of Java programming. Java2 is the second generation of the Java platform (first generation is the Java Development Kit). Java stand on a machine called JVM interpreter. JVM bytecode is to be read in the file. Classes of the program as a direct representation of the machine language program contains. Therefore, the language of the Java programming language known as portable as it can be run on various operating systems, as long as the operating system are included JVM.

The platform consists of a collection of Java libraries, JVM, classes loader packaged in a regular Java environment, and a compiler, debuger, and other devices are packaged in a Java Development Kit (JDK). Java2 is the generation now emerging from platformJava. In order to run a Java program, the file with the extension.'' Java'' to be compiled into bytecode file. To run the bytecode needed JRE (Java Runtime Environment) that allows users to run Java programs, just run, not to create a new code. JVM and JRE contains libraryJava used.

PlatformJava has three different editions, ie J2EE (Java2 enterprose Edition), J2ME (Java2 Micro Edition) and J2SE (Java2 Second Edition). J2EE is a group of multiple APIs (Application Programming Interface) from Java and technologies other than Java. J2EE is often regarded as middleware or technology that runs on the server, but actually J2EE is not limited to it. In fact J2EE also includes technologies that can be used in all layers of an information system. Implementation of J2EE provides base classes and APIs from Java to support the development of a standard routine for client and server applications, including applications that run in a web browser. J2SE is the basis of the Java environment, while J2ME is a library edition is designed to be used on devices like pagers and mobile phones.

Java is a language that is case sensitive pemrogrman which means writing use uppercase or lowercase letters in the code may mean another. For example, writing "System" will be interpreted differently by the "system" by the interpreter. Java does not like C + +, Java does not support procedural programming, but it supports object-oriented programming so that no class syntax in the source code.
Labels: Java Programming
Home » Posts filed under Java Programming

Taking the port from URL

Taking the port from URL. Port is a 16-bit number to know the services offered by the network server, each service has a port, if you want to access the service shall be connected to the appropriate port, the port has a particular service is called the standard port, eg port 80 http protocol has (80 standard ports), all services have a port number below 1024, whereas port numbers above 1024 are custom port that we use when they want to make a server, so the server should use when making port above 1024

In this article will be given a script that can help you get the port number specified in the URL, to take the first port we create an object of class URL, then created a variable that holds the value of the url given port, then use a method which URL to display port getPort (); Integer port number that is accommodated by a variable of type Integer, then the number is issued to the console, as was done by the script below
--------^^^^^^^^^^^^^^^^^^------------------
package javalearning;
import java.net.*;

public class AmbilPort {
public static void main(String[] args) {
try{
URL url = new URL("http://www.yahoo.com");
Integer protocol = url.getPort();
System.out.println(protokol);
}catch(Exception ue){
}
}
}
---------------------------------------------------
....
Labels: Java Programming
Home » Posts filed under Java Programming

Eclipse IDE Instalation


Eclipse IDE Instalation. Eclipse is an open source community that aims to produce an open programming platform. Eclipse consists of a framework that can be developed further, auxiliary equipment to create and manage software from the beginning to launch. Eclipse Platform is supported by a large ecosystem consisting of vendor technology, and innovative start-ups, universities, research institutions and individuals.

Many people know Eclipse as an IDE (integrated development environment) for Java, but Eclipse is more than a Java IDE.

Eclipse community has more than 60 open source projects. These projects are conceptually divided into 7 the category of:

  1. Enterprise Development
  2. Embedded and Device Development
  3. Rich Client Platform
  4. Rich Internet Applications
  5. Application Frameworks
  6. Application Lifecycle Management (ALM)
  7. Service Oriented Architecture (SOA)

Generally used Eclipse to build innovative, industry-standard software, and tools along frameworknya help job easier.

License

Eclipse uses EPL (Eclipse Public License), the license that enables organizations to make Eclipse a commercial product, and at the same time asking people to contribute to change the result back to the community.

Installation

  1. You need a Java 5 JRE to run Eclipse.
  2. Download Eclipse IDE for Java Developers to use Learning Java code on this site.
  3. Use your operating system utility to uncompress the file to your hard disk.
  4. Note for Windows: If you use a file compression utility from Windows XP or Windows Vista itself, the utilities are sometimes unable to open files with long names. If you are having problems decompressing Eclipse on Windows, put the results of decompression in the root directory (eg C: \ eclipse) or use other free decompression software such as 7-Zip

Labels: Java Programming
Home » Posts filed under Java Programming

The features in Java Programming


The features in Java Programming

What are the features of the Java programming given so many people calling Java has a good prospect? Here are some of the features of Java programming to IT Programmer explain:

  • Accessibility of the various locations in the world:

Java is a programming language intended for the internet, so that Java can diaskes via the world wide web and can be accessed from any location in the world. This course facilitates a variety of users all over the world, they just need internet access in order to access Java.

  • Virus-free system:

Java implements strong type-checking on the user's computer, changes to the program will be marked as an error and the program does not run. Type checking is the checking system in which the code will check if there is a change in the original code. If the virus to change the code, then the program will not run. So the computer safe from virus attacks.

  • Applications are compatible with various platforms:

Also Java is a programming language that can be used in different platforms (Platform Independent Application). Java compiler to compile java code into intermediate bytecode that can be read by the JVM (Java Virtual Machine). Java Interpreter on a Java-enabled browser can execute this bytekode. With the bytecode compilation and interpretation by Web browser, the Java program can run on different hardware and operating systems, as long as the operating system has a web browser that supports Java or Java Interpreter.
Labels: Java Programming
Home » Posts filed under Java Programming

The Advantages of Java Programming Language


The Advantages of Java Programming Language

Other programming languages ​​that existed before Java birth is a good language and easy dipelajasi by professional programmers. However, the programmer is wanting something new that has a lot to solve their problems. Primarily the security of their code. This gave rise to a revolutionary mind to find another programming language called Java. Not only the safety but also some things that are often referred to as a Java-buzzwords. These words explain the additional features and some of the things that makes Java so successful and accepted by the software world. Here is the description and advantages of these words.

Simple and Object Oriented

As described earlier, Java was born of a deep thinking will programming language that existed at the time, such as C and C + +. This will facilitate the professional programmer to understand more clearly about Java, functionality, and so if he has a basic knowledge of C + + and object-oriented programming concepts. The goal is that the basic concepts of Java technology can be understood easily, and the programmer can quickly produce something as early as possible. Not only this, the inventor of Java ensures that the Java programming language also stems from the existing base at the time. Then they throw a variety of complex and confusing features.

The Java programming language was designed from the outset to be an object-oriented language. After about 30 years, object technology finally become a reality and is accepted by most of the programming community. The concept of object-oriented software allows the creation of complex, network-based, so it can be concluded that the Java technology platform making software produces a good and efficient as well as object-oriented.

The advantage that you get from Java

  • Start quickly: Java is an object-oriented programming language, easy to learn, especially for programmers who are already familiar C or C + +
  • Write fewer programs: Number of classes, number of methods, etc., show that a program written in the Java programming language has a number of 4-fold smaller than the same program written in C + +
  • Write a program better: the Java programming language advocating the practice of making a good program, and automatic garbage collection helps you avoid memory leaks. Object orientation, component architecture JavaBeans, and reach broad Yanga, an easily extensible API, allowing you to use your existing code.
  • Making programs more quickly: The Java programming language is easier than C + +, programming will be 2 times faster, with far fewer lines.
  • Avoid dependence on a specific platform: You can run your program on multiple platforms by using a library written NOT specific to a particular platform.
  • Write once, run anywhere: Because applications written in the Java language is compiled into byte code is platform independent, written application can be run consistently on any platform.
  • Distribute your software easily: With Java Web Start, the user program will be able to use your applications with ease. Automatic version checking system when the program starts the user ensures you are always running the latest version. If a new version is available, Java Web Start will install automatically.

Labels: Java Programming
Home » Posts filed under Java Programming

Know the Java Programming Language

History of Java

Java pioneered by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan of Sun Microsystems, Inc. in 1991. They need about 18 months to make the first version. This language was initially called "Oak" but was changed to "Java" in 1995 as the name of Oak have made copyright and used as other programming languages. Between making of Oak in fall 1992 to be announced to the public in the spring of 1995, many people involved in the design and evolution of language. Bill Joy, Arthur van Hoff, Jonathan Payne, Frank Yellin, and Tim Lindholm is a key contributor to finalize the original prototype.

Modern Java

Java has been used in many ways and have proven its existence in the 21st century. Today, Java is used various types of applications such as embedded applications, financial applications, desktops, airplane simulation, image processing, games, distributed enterprise applications called J2EE and much more.

Java Virtual Machine (JVM)

Java Virtual Machine is a simple application written in C language for mengeksi programs written in the Java language. At the time of compilation (a change from a high-level language into a lower language), the program was changed to CODE BYTE. Then at the time of execution, the JVM byte code reading tersebu and turn it into machine language understood by the operating system where the program is run.

Because the JVM is very dependent on the platform (machine language is a low level language only understood by a particular machine, such as Intel, but it can not be understood by other machines, such as the Macintosh), byte code can be made to be free from the confines of a particular platform. Byte code generated in the process of compiling the Java language will always be the same for each operating system or the type of engine, but it will change the JVM bytecode into machine language goals.

Just In Time Compiler (JIT)

Although Java was designed to be interpreted, technically nothing prevents Java is compiled into machine language like other programming languages. Sun provides a compiler Just In Time Compiler (JIT) compile to byte code into machine language at the same time with the execution. However, the JIT approach produces more capabilities than the usual interpretation.
Labels: Java Programming
Next Post » Home

Sponsor

 
Copyright © 2013. Technoledge - All Rights Reserved
Proudly powered by Blogger