Skip to main content

Posts

Showing posts from October, 2015

Java tutorial Part 4

i mport java.io.*; class   example {      public   static   void  main(String  args [])   {            System.out.println ("Hello Java");      }    }   Let's look at how to save the file, compile and run the program. Please follow the steps given below:   Open notepad and add the code as above.   Save the file as: example.java .   Open a command prompt window and go o the directory where you saved the class. Assume it's C :\.   Set the path   Type ' javac example .java ' and press enter to compile your code. If there are no errors in your code, the command prompt will take you to the next line (Assumption : The path variable is set).   Now, type ' java example ' to run your program.   You will be able to see ' Hello Java ' printed on the window.   Understanding first java ...

Java Tutorial Part 3 (Features of Java)

Simple: Java is designed to be easy to learn. syntax is based on C++ Object Oriented:   In Java, everything is an Object. Java can be easily extended since it is based on the Object model Platform independent:   Java code can be run on multiple platforms  Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by virtual Machine (JVM) on whichever platform it is being run.   Secure:   With Java's secure feature it enables to develop virus-free, tamper-free systems.  Java program cannot harm other system thus making it secure Java provides secure way to access web applications Java provides secure means of creating internet applications Robust Java encourages error free programming by being strictly typed and performing compile time and ru...

Java Tutorial Part 2

Tools required to create Java program. Before creating a program, understood what are requirement to create a java program Java Development Kit(JDK) You have to install java development kit (JDK) in your machine. JDK contains the resource to create a program ,which contains java compiler ,java interpreter, jar, javdoc etc. A Text Editor -Earlier we have used notepad ,this is the best for a beginner to learn but in professional approach we have to use an Integrated Development Environment(IDE) like Netbeans or Eclipse An integrated development environment ( IDE ) is a software application that provides comprehensive facilities to computer programmers for software development. An  IDE  normally consists of a source code editor, build automation tools and a debugger.  

JAVA Tutorial Part 1

Part 1 ,we are discussing about basic programming concepts. Java is a general purpose object oriented programming language. There are few technical terms in the first sentence, it might be difficult to understand for a beginner's ,right  here I can explain the basic terms. Program -Series of instructions (Code) to perform a particular task. And Collection of program's are referred to a Software Language's you know it very well, which using for communication. Here computer Language's are classified into 2 category's, they are Machine Language or Low level language and High Level Language Machine Language - Which is the one and only language, a computer can understood directly and this is binary itself either 0 or 1.Simply we can say computer could understood binary language only. Programming instructions written by using a natural language(English) is termed as High level language . Example for the high level language's are Java,C,C++,PHP,ASP...

What is a Programming Language

Program -Series of instructions (Code) to perform a particular task. And Collection of program's are referred to a Software Language's you know it very well, which using for communication. Here computer Language's are classified into 2 category's they are Machine Language or Low level language . Machine Language - Which is the one and only language, a computer can understood directly and this is binary itself either 0 or 1.Simply we can say computer could understood binary language only. Programming instructions written by using a natural language(English) is termed as High level language. Example:-Java,C++,Ruby,PHP etc