Now, In this post we are going to learn about White Spaces, Data Types, Variables and Array Of Objects.
Let us Begin...
What are White Spaces in Java ?White Spaces are backslash character constants which are also known as escape sequences.The following table shows the constants and their meaning alongside.
|Backslash Character Constants|
The output of these constants are shown in the output screen below :
Now, Moving on to the next topic, Data types.
What are data types ?Data types specify the size and type of values that can be stored. Java language is rich in its data types.
|Data Types in Java|
To find out "How different data types differ to each other ? " Click here!
What are Variables ?A variable is an identifier that denotes a storage location used to store a data value.
- Variables must not begin with a digit.
- It should not be a keyword.
- White spaces are not allowed.
- They can be of any length.
For a complete code on variables and their use Click here!
The println always appends a newline character to the end of the string whereas Print do not.To Know how Print and Println works Click here for the Program!
Array of objects :We have already studied that an object is the collection of data types and methods of the class to which it belongs. But what if we have more than one object in our program ? In this situation, The objects share the methods of the class but not the data members.
To know more about Array Of Objects Click Here!
Happy Learning. Have a great day!
Rohan Chaubey is the founder of “Be Rohanlicious” – a blog that teaches you to be smart with social media, blogging and programming.
Rohan is on a mission to help all the enthusiastic souls like you, who want to “make it to the next level” and stand out of the crowd.
His e-book “Make People Want You” is releasing soon. Allow him to inject awesomeness in your life by signing up to his list here.