Java Programming [(Ict) Information And Communication Technology]
What is java programming......
Java is a computer Programming Language. It enables programmers to write computer instructions using English-based commands instead of having to write in numeric codes. It’s known as a high-level language because it can be read and written easily by humans.
Like English, Java has a set of rules that determine how the instructions are written. These rules are known as its syntax. Once a program has been written, the high-level instructions are translated into numeric codes that computers can understand and execute.
OPPC (Object Oriented Programming Concept)
Introduction.....
In the past, when coding a java file, it was difficult to find out if an error occurred when several hundred thousand lines of code were typed. If there is an update, it is difficult to do. Due to this problem, the developer and the client had difficulties. After that, the developers started to code the relevant units (objects) of the software in separate files. A running problem arose after coding the files. Therefore, the developers connected a main java file (main java programming) with the other java file and ran the program.
Class Structure And Class Main Structure
Class Structure
Class Demo - (Class Name)
Void demo - ( ) { - (Method)
Str ; - (Variable)
}
{
Main Class Structure
Class Main {
Public Static void main (string) [ ] gs){
Str;
}
}
Variable
Ex: tharusha Tharusha
mango Mango
Ex; Dasanayaka - (Class or data type)
String
saman - (Variable)
person
Method
A method can be given any name. (Test,demo) According to a standard it can provide simple fonts.
Ex; void test ( )
public void demo ( )
Object And Class
Object
Anything that has common characteristics and capabilities (Features and properties) is called an Object
Ex; (Behavious/Functions)
(Features/Proeties)
Class
Anything that has (Features) and (Behavious) based on an object is called an object.
Create a object
Class Human {
Class amal = New name ( ) ;
Ex: Human amal = (new Human) ( )
: Human - (object)
amal - (object name variable name)
(New Human) - (keyword object creat)
( ) - (object store(
; - (line end)
Ex; Human amal ;
amal = new Human ( ) ;
D.M.T. Dasanayaka
Software Engineer
Java Development.

Hi Dasanayaka.
ReplyDeleteI can see that you are new to blog posting/blogging. a very important part of blogging is to always "Cite" the sources you used when creating your article. This is very important since otherwise you can be flagged for plagiarism. By googling the first few sentences of this article I can find a different source with word-to-word exact phrasing, but was published much earlier than this article. its okay to reference other articles/works but you have to cite them if you plan to do so. Hope you will fix this.