Head Resist

Web design, Programming, Development and SEO

Java – Programmimg Language

Sunday, December 11th, 2011

Java is an object oriented and structured programming language, designed by Sun Microsystems in the year 1991.Java is a third generation programming language. It has an in built application interface which has the ability to handle the graphics and user interfaces that creates the applets or applications.

The very advantage of java is its “portability”, the programmer can write the program and compile in the same kind of environment as it is written and after that it can be run anywhere.

Java relates to both C and C++, it uses the syntax of C and the object oriented concepts from c++ and this makes Java appealing. When a source code is given as the input, the output from java compiler is the “bytecode”. Bytecode contains set of instructions which will be executed by Java Virtual machine (JVM). In a more simple way, I can say JVM interprets the bytecode and this is the reason that java can be run anywhere. Applets are the programs which are embedded in to web page and can be executed where as the applications are directly executed by JVM.

It is not always possible to compile the complete program at the same time, so java uses just-in-time compiler to compile a set of bytecodes in real time for execution and the remaining codes will just be interpreted and thus makes the execution of Java program faster. The two main building blocks of java programming are the classes and objects. Objects are the instance of class and class is a template for creating objects.

Unlike in c/c++ you need not manually allocate/de allocate dynamic memory, java itself does this and also it has garbage collection for the unused objects. Java program handles the run time errors too. Java supports multithreaded programming.

To summarize Java is easy to use, write and to compile, it is robust, platform –independent, distributed, interpreted and secure.

Using the Right Programming Language That Suits You

Thursday, December 1st, 2011

One of the languages developed on top of the Java Virtual Machine is the Jython, and this project began in 1997. the development of the language has been passed on to several lead developers until Sun Microsystems took over and worked full time on it. Jython 2.2 which is the latest release matches up to the CPython 2.2 release but later, its developers shifted to a new direction for its implementation using ASM and ANTLR to hasten development time. With the interactive interpreter found inside the jar file, you can discover the capabilities of Jython, most specially in executing files.

When using the Open Source Software for commercial gain minus the tricks and preserving the community and openness aspects, there are two things to consider: that payment is collected proportionate to the advantage gained from the software; and that active user in the community can have the assurance that their license charges is compensated in relation to their code contributions. This means a user is allowed to have open access to the source code, allowed to redistribute it, and free rights to make changes to the code; being able to initiate some limited charges supported by certain restricted types of program execution, and agreeing to cash or in kind payments.

Open source software and open source documents are fast gaining popularity. It is firmly gaining a growing market share as well as getting the corporate and the public’s interests. It is also quickly entering mainstream, being in the technology world starting 1998. However its concept began alongside the birth of computing. Frequently Asked Questions list or FAQs were the first documents to be known as having used the open source software but beside this information little is known about this list. Open source needs good documentation to spread out to new users and three forms are currently in use: ReadMe files, Manual pages, and HowTo documents.

There are two types of software being used: the conventional closed source from software vendors; and the open source, with Linux and MySQL as examples. Both software have managed to be on the same footing and is in existence probably almost at the same time, around the start of the computing world. Recently, customers are expressing disappointment over the closed source protocol software but are not inclined to be completely dependent on the open source programs. They are looking for warranties, agreements and vendor assurance that they have qualified and committed developers. Their areas of concern with open source deal with collaborative source software and license and feedback from it.

Web Services for Remote Portal provides a pattern for the portal application to allocate portlets between portals. It is the facility to produce an interface to useful function that can be used throughout the enterprise with little or no changes to existing code. Almost all of the newest versions of commercial and open space portal products support it. The key procedure is similar to earlier web services – producer provides WSDL that directs the consumer on how to create a SOAP request. SOAP responses are obtained at the presentation level and the consumer then decides where to display them. Being simple, it provides whatever the enterprise needs to reuse portals across the enterprise.

Java Programming

Sunday, May 16th, 2010



It is high-level object-oriented programming language developed by Sun Microsystems in 1995. It is very similar to C++. It was used for the project set top box, was created by James Gosling in 1991. It is the modified from the language Oak. Oak was unsuccessful in the market. So Sun modified this language and changed its name to Java. It is very one of the popular programming language because of platform independent nature and used in both computer and electronic devices. Platform independent means write once and run anywhere, only Java Virtual Machine needed to run Java program on any platform.

_______________________________________________________________

First Program in Java

Before writing java code, please be careful when you write the java code because it is case sensitive language. I will explain later about”String[] args”.

class HelloWorld {

public static void main(String[] args){

System.out.println(“My First Program:Hello World!”);

}

_____________________________________________________________________

What is the work of public static void main(String args[]) method in Java. Here is the explanation :

public : The public method can be accessed outside the class static : We must have an instance to access the class method. void : There is no need by application to return value. JVM launcher do this with it exists. main() : It is the entry point for the java application. String args[] : It holds optional arguments passed to the class.

____________________________________________________________________

Prime Number Program : Java Programming

This program explain you how to check the number is prime or not if user input the value from keyboard. Here is the source code :

import java.io.*;

class PrimeNumber {

public static void main(String[] args) throws Exception{

int i;

BufferedReader bf = new BufferedReader(

new InputStreamReader(System.in));

System.out.println(“Enter number to Check:”);

int num = Integer.parseInt(bf.readLine());

System.out.println(“Prime number: “);

for (i=1; i < num; i++ ){

int j;

for (j=2; j
int n = i%j;

if (n==0){

break;

}

}

if(i == j){

System.out.print(” “+i);

}

}

}

}

For More : http://e-booksnetworking.blogspot.com/