Head Resist

Web design, Programming, Development and SEO

Online Java Programming Tutorial

Monday, November 14th, 2011

Online Java Tutorial. It is the need of the hour as the world slowly get stable economy and the programming options and learnings are again started.

Java is a very powerful language to be used in designing web applications. Java is a product of sun microsystems and helps in desining standalone applications web, applications, custom applications, embedded system programming, mobile programming and so on.

If any one who want to make his career in computer software he has to be introduced to java. Such popular and powerful language it is. As per the different surveys and the feedbacks from the job consultancies we learn that the job opeinings for java lies between 40 to 60 percentage of total software openings are demanding programming skills in java.

Java lays the foundation for not only the programmers but also the testers when the write their scripting for automated testing.  Learning java will help to achieve ones targets easily because of the inbuilt libraries it has, the security it provides, especially the platform independance.

There are several websites which provides tutorials for learning core java, advanced java, servlets, JSPs, architecture using frameworks like struts, hibernate, spring and so on. These sites will provide discussion forums where we can post our queries and the experts will post the answers to it. When registered with the site we will get regular mails on java updates, new examples added, We can also provide feedback to the site as it conains the feedback.

I hereby will introduce you to one such website http://www.javaneeds.com

http://webarchtechnologies.com

Computer Programming: How to Design a Program

Saturday, June 11th, 2011

When designing a program, you must first have a deep look at the purpose of the program to design and what it will make. You must have the detailed specification needed to begin thinking what you will do. For example, if you designing a web program for handling requests, you must know the pages which will handle, and what are the purposes of each page, the intermediate processes across the requests based on what it must be done before transmitting the page to the client such as connecting to a database and accessing it or writing to it. All this must be known in advance.

 Once you know all these details and the processes inside the application you build, you must organize you thinking on papers. This is done by the so called flow charts or algorithms. This will help you greatly to track all the operations inside the application and then design the program based on it. If you neglect this step, you may find difficulties when writing the actual program especially if the program is complicated.

 Once you draw the flow chart and knew how the operations will flow, you then can implement what you planned by the programming language you choose. This step is also called coding because you are writing code representing your operations you planned in the previous step. Once you are done you can run and test your application. But wait, many errors may appear when testing and you should correct it and this is considered the final step in the programming life cycle which called troubleshooting.

 Many tools can be found for running and testing the program which can ease you work. Remember that there is a difference between the libraries making up the language and the run time environment you use. Java programming for example has the so called JDK which contains the core libraries making up the language but has a separate run time environment which is a separate program for execution and running. You can execute your program from Dos but these tools greatly help you. Java language for example has a run time program called NetBeans which acts a run time environment and has rich tools for dealing with the applications

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/