OBJECT ORIENTED PROGRAMMING IN JAVA (STANDARDS / .OPERARTORS/ CLASS AND OBJECT)

The Java Programming Language is based on an OOP Methodology and that has different kinds of point  such as called Java Class hierarchy 

  • Object
  • Class
  • method
  • Variable

Do you Know Standards of java?

So , above I mentioned java programming language is an OOP based language and its  standards  are Combination with Variables, Class, and method 

Now, I will tell:

how to identify these standers;

Car - class

First letter is Uppercase of the word It's Called  "Class".

car - variable

First letter is Lowercase of the word it's called "Variable"

car() -method

First letter is a lower Case and after the word with Parameters it's called "Method".

Then Now, I explain:

How to create java Print Statement

           


System is a Class ,out is a variable and print () is a method.


above mentioned statement use to the Dot Operator ( its use for the Calling) ("Hello World") is a print part and important thing is end of  the statement must be added  ;. Semi colon for the end .

 I explained java Print Statement and now I move on other part  such as Scope Identification is a when you declare a variable, look for the closest enclosing curly brackets { } – its  called scope Identification.

Ex-                                          class A{ 1

                                                Integer.int = "2"

                                                System. out. print (A. a) ; 

                                                public void test(){2

                                                }2

                                                }1                   

            

Point of Especial...….

String b = "2";

It s a Simple assignment operator. Assigns values from right side operands to left side operand. Its meaning is a String b="2" assign value of "2" into String b.

String a = "2"
String b= "1"

== This is a Equalization Operator ,my mind , actually this operator use Checks  the values of two operator are equal or not, if yes then condition becomes true.

(a==b) is an incorrect.

CLASS AND OBJECT

This is a most important part in my Article ,so 

"What is Object and class" ?

I will explain;


An object is a features and functions combination.an object is stored in properties  (variables), while behaviors (functions) display the object's behavior. Objects are created from templates and which are also known as classes.

What a class does is that if there are more objects, they are taken under one and other special thing is that even if the values ​​are different, it is possible to create a class using features and functions.


Thank you.

Comments

Popular posts from this blog

DEMYSTIFYING THE POWER OF x86 ARCHITECTURE

A GUID TO BEACOMING A SOFTWARE ENGINEER

JAVA LAMBDA EXPRESSION