Posts

Showing posts from April, 2014

What is java??

Image
What is java??   Java is a programming language used by millions of devices across the globe.The java was initially named "Oak",then changed it to java. Developed by james gosling of sun microsystems  in 1991 and now owned by Oracle inc. Java features in brief: General purpose,high level programming language. Pure object oriented programming language(We cannot make a java program without creating class,the name of the source file must be same as the class name) Platform independent Robust Both Compiled and interpreted. Supports all Oops features like inheritance,polymorphism,encapsulation,data abstraction and hiding,message passing. Automatic garbage collection Has a virtual machine called Java Virtual Machine(JVM),that has ability to interpret java byte code and execute at the runtime. What java can do?? With java you can make strong computer applications,web-sites with an ease. You can make online games,interactive websites,create chat application

hello world and hello java

Image
Writing your first program in java     Courtesy:  http://2.bp.blogspot.com/- Following the ritual of printing "hello world" to the system,let's get ready for our FIRST newbee java program. Before writing the program,we must figure out which text editor you want to use.You can use the traditional Notepad or an advance  free text editor especially for programmers called Notepad++. Download link: notepad++download . You can use IDE like netbeans or eclipse but for learning basics of java language you have to choose a text editor. So....text editor done. Then make a directory in a Mydocuments named java projects. Here all your java projects resides. So....Choosing directory done. Then create your project "first program" inside the java projects folder. Create new file inside this folder name Hello_world.java. NOTE:Every java file must end with extension .java(Ex.Sample.java) and there must be no spaces between the name and it must start with a chara