Introduction of java, What Is Java and its features, Features of Java


Introduction of java, What Is Java and its features, Features of Java



 Programming Language:-
                                         Another Programming Language, using which we can develop Applets, Standalone Applications, Web Applications and Enterprise Applications.

Platform Independent :- 
                                      A Java Program written and compiled on one machine can be executed on any other machine(irrespective of the operating system).

Object Oriented :-
                            Compiles to object oriented programming concepts. Your Program is not object oriented unless you code that way.

Compiled and Interpreted :-
                                           The .java file is compiled to .class file and the .class file is interpreted to the machine code.

First Program of Java Example :-

package W3STutorial;

public class Test
{
     public static void main(String[] args)
        {
             System.out.print("Hello Java");
         }
}

save the above program with the name of Test.java
compile :- javac Test.java
Run :- java Test

Object Oriented Concepts in Java :-

Class :-
           A blueprint that defines the attributes and methods.

Object :- 
           An Instance of a Class.

Abstraction :-
            Hide certain details and show only certain details.

Inheritance :-
            Inherits the features of a superclass.

Polymorphism :- 
              One Name having more forms.

{ 0 comments... read them below or add one }

Post a Comment