Getting Started with Java ( Java -1 )

Java is nearly an 100% Object Oriented Programming Language. The smallest part of a java program is a function, which is always a part of any class. Some Functions return or doesn't return anything, we give a suitable return type as we give in C/C++/Python. The syntax is as below :

When a function is written within a class we call it a method of that class. The name of the classes in Java are generally written in Capital letters as syntax. All the classes and method in Java has an access modifier. This access modifier determines if any user can access the method or class. Public, private, protected are some access specifier/ accees moderator. The outer class should always be Public or Default ( by not writing any class ).

Here is the first program that prints "Hello World".

Comments

Popular posts from this blog

Bubble Sort ( C & Python 3)

Comparison Logical and Bitwise Operator ( Java Part - 4 )

Something about me