CONSTRUCTOR IN JAVA PART . 12
Constructors are used to initialize the value of data members of a class. The Constructors is the member function of the class.
All the Java Related content
Constructors are used to initialize the value of data members of a class. The Constructors is the member function of the class.
Object oriented :- A Java is object oriented programming language because java follow more oop’s concept as comparison to other programming language. In java programming every thing in an object means without class you can not write single java program.
In order to read data from the keyboard, java has a Scanner class.
Scanner class has a lot of methods to read the data from the keyboard.
We have different ways to take input from user in Java.
In order to choose the data type we first we need to find to find the type of data , we want to store. After that, we need to analyze the min and max value we might use.
Whatever the name we are using in java program is called as Identifier It can class Name , Method Name, Variable Name.
Keyword are the predefined word, It has some functionality (working) & its functionality (working) is register with jvm.
We can declared only one class should be public No two class should be declared as public in single java file.
In java java.lang package is default package.
Which is the most important package in java.
jdk is the combination of java compiler(javac.exe),jre(jvm, library)
Download the jdk from oracle web site.
If a function is defined with in a class then it becomes as method. And without class it is called as function.
Class Name :- 1st letter should be capital letter.
Method Name or Function Name 1st letter should be small letter.
Java is programming language.
It is advance version of C++.
Java is developed by “ James Gosling ” in 1995 at Sunmicro system.