stu nicholls dot com | menu - Professional dropdown #3

click here

Java Introduction

Java is a truly object-oriented programming language developed by Sun Microsystems.
Goal was:"Write once, run anywhere, any time, forever"
The language is modeled on C++.


Features of Java

Object Oriented Concepts

Example :
Class Rose

Objects and Class


class Person
float height;
int age;
String lastName;
void run(){...}
void eat(){...}
void sleep(){...}

Object-Oriented Principles

Java Working

How Java works?

Adding main() Method

This is the point where the execution of the program begins.
Object Creation Using 'new'
class Person{
public static void main(String args[]){
Person rama;
rama = new Person();
// Person rama = new Person();;

First Program

class Hello
   public static void main(String args[])
     System.out.println("Hello My Dear Students");

Working with the program

Our aim is to provide information to the knowledge seekers. 

comments powered by Disqus
click here
click here
click here