Wednesday, February 15, 2023

Java 1

 

Java: - Java is a programming language and computing platform first released by Sun Microsystems in 1995.java is a widely used object-oriented programming language and software platform that runs on billions of devices, including notebook computers, mobile devices, gaming consoles, medical devices and many others. The rules and syntax of Java are based on the C and C++ languages.

Java is a multi-platform, object-oriented, and network-centric language that can be used as a platform in itself.


Why Use Java?

👉Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)

👉It is one of the most popular programming language in the world

👉It has a large demand in the current job market

👉It is easy to learn and simple to use

👉It is open-source and free

👉It is secure, fast and powerful

👉It has a huge community support (tens of millions of developers)

👉Java is an object oriented language which gives a clear structure to programs and allows           code to be reused, lowering development costs

                         

Java Edition

👉 Java SE (Java stander edition)  :- This edition is used for create a desktop and window based                   application.

👉 Java EE ( Java Enterprise Edition) :- this is also know as J2EE or java 2   

  platformdeveloper creates applications for servers, i.e. enterprise development. This is the edition for web development..

👉 Java ME (Java Micro Edition) :- this edition is used for mobile developer application.


Class :- Class is user defined data type which holds own data member and member function.  which data is defined in class is called data member. we can declare more than one data member in class. and which function is declared in class called member function. we can declare the more than one member function in class.

in other way we can say that class is a collection of data member and member function. We can access the  data member and function with the help of object which declare in the class.

Object :- An object is an instance of class. whenever we declare the class no any memory allocated in program but when we declare the object it allocate the memory in the program.

there are three types of access of specifier in class

        1    Public

        2    Private

        3    Protected

Syntax of class

                    Class       Class_name

                    {

                        Public:

                        Private:

                        Protected:

                    };                note :- we when close the class we used semi colum in the end of class i.e every class end with semicolon. ;

 we can also define the data member and member function is public, private and protected mode in class i.e 

            Class  Class name

                {

        public : data member / member function

            Private : data member / member function

                Protected :data member / member function

                    };

                              

declaration of class


        class_name . object_name;              

No comments:

Post a Comment