Home > Uncategorized > How to learn Java ( Beginners Tutorial)

How to learn Java ( Beginners Tutorial)

How I started learning Java

– Why I wanted to learn about Java ?
Well I do have fairly good background of the Hardware Design. I have “some” background of the SOftware. Recently I got interested in the Android because the hardware platforms that I designed used Android. The hardware and the Android seemed to make a good combinations. I therefore, wanted to learn Android. It turned out that Android needed Java Background, so I started learning Java first.

– Well the first thing I did was make myself comfortable with some of the terms including the Java Virtual Machine, Byte code etc. Since I do have some background of programming ( C, C++, PHP and Javascript) I could understand the “Hello World” programs.

– The next problem for me was to install an environment where I could compile and run the Java Program. Turned out that all the web search results were pointing to older versions of JDK. They also referred to Sun, which was acquired by

Oracle. The Oracle site listed a large number of environments including JDK EE ( enterprise Edition). I downloaded the JDK + NeBeans from http://www.oracle.com/technetwork/java/javase/downloads/index.html. I still do not know what is JDK Fx at this stage.

I downloaded the 150 MB file called jdk-6u24-nb-6_9_1-windows-ml.exe – took 15 minutes or so.

According to Wiki –

NetBeans refers to both a platform framework for Java desktop applications, and an integrated development environment (IDE) for developing with Java, JavaScript, PHP, Python, Ruby, Groovy, C, C++, Scala, Clojure, and others.

– Once download was complete, I installed the program. It was pretty quick. The NetBeand IDE 6.9.1 stands installed. When you start the NetBeans – it looks something like this.

– Although there were sample projects available, I wanted to try my own. So I clicked on Fie -> New Project. Under the Category I chose Java. Under the projects I chose Java Application. I kept the Project name at default JavaApplication, but chose a different Project Location C:/Java

– A window comes up with following pre loaded code

* To change this template, choose Tools | Templates
* and open the template in the editor.

package javaapplication1;

* @author abhinsv
public class Main {

* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here


– Next I added the following line just after public static void main(String[] args) {

System.out.println(“Hello from http://starredreviews.com”);

– I hit F11 to build the project which compiled sucessfully. Then I hit F6 to run the project. It gave the output

Hello from http://starredreviews.com

I do not see any reason why you should not be able to do the same.

Author : Vikas Shukla is a technology enthusiasts who like to try out something new in Software development.

Categories: Uncategorized Tags:
  1. December 12th, 2013 at 20:50 | #1

    With havin so much content and articles ddo you ever
    run into any problems of plagorism or copyright violation?

    My website has a lot of unjique content I’ve either written myself or
    outsourced but it looks like a lot of it is popping it up all over the web without
    my authorization. Do you know any ways to help reduce content from being stolen?

    I’d definitely appreciate it.