Wednesday, 30 September 2015

First Java Program

Before initiating this let me make it very clear "Java is Case Sensitive Language".For  example if u have a method called forth() n if u have written Forth() while accessing this method than it is not correct as compiler might throw an error saying method not found.

To begin with we require following:

1.An IDE---  NetBeans 8.0 for windows 8.U can use different version compatible with your Operating System.

So Over here what u do is create a Java Application n start with your first program.

The First program is shown below:



You can view the output  as shown.



If you just want to opt for manual editor like notepad for executing java program then here are the screens which demonstrate the procedure.



You might be wondering why there is no import stmt just like how we include header files in C, because even if we don't mention the package gets imported by default over here.This package is java.lang.* package.


 

No comments:

Post a Comment