You are here:   HomeJava ProgrammingJava Language
by Dinesh Thakur Category: Java Language

Java Tokens:- A java Program is made up of Classes and Methods and in the Methods are the Container of the various Statements And a Statement is made up of Variables, Constants, operators etc . 



 
by Dinesh Thakur Category: Java Language

 The process of converting one data type to another is called casting. Casting is often necessary when a function returns a data of type in different form then we need to perform an operation. Under certain circumstances Type conversion can be carried out automatically, in other cases it must be "forced" manually (explicitly). For example, the read() member function of the standard input stream (System.in) returns an int. If we want to store data of type int returned by read() into a variable of char type, we need to cast it :



 
by Dinesh Thakur Category: Java Language

By literal we mean any number, text, or other information that represents a value. This means what you type is what you get. We will use literals in addition to variables in Java statement.



 
by Dinesh Thakur Category: Java Language

Type Conversion

Type Conversion is that which converts the one data type into another for example converting a int into float converting a float into double The Type Conversion is that which automatically converts the one data type into another but remember we can store a large data type into the other for ex we can t store a float into int because a float is greater than int Type Conversion is Also Called as Promotion of data Because we are Converting one Lower data type into higher data type So this is Performed Automatically by java  compiler



 
by Dinesh Thakur Category: Java Language

Keywords also known as reserved words are the pre-defined identifiers reserved by Java for a specific purpose and used only in a limited, specific manner. A Keyword is that which have a special meaning those are already been explained to the java  language   like int, float, class, public etc these are the reserve keywords. They cannot be used as identifiers because they have special meaning within the language.



 
by Dinesh Thakur Category: Java Language

New is a Keyword Which is used when we are Creating an object of class For Storing all the data like variables and member functions  of class  there is some memory Space that is to be needed So that With the help of new Keyword and Object is Instantiated or Simply an object Reserves



 
by Dinesh Thakur Category: Java Language

Identifier is is a simple variable name which is defined as the value container. The type of value stored by identifier is defined by the special java keyword is termed as primitive data type.



 
by Dinesh Thakur Category: Java Language

Keywords are the words. Those have specifics meaning in the compiler.

 
by Dinesh Thakur Category: Java Language

A java variable can be declared using the keyword final. Then the final variable can be assigned only once.



 
by Dinesh Thakur Category: Java Language

A Java program consists of different sections. Some of them are mandatory but some are optional. The optional section can be excluded from the program depending upon the requirements of the programmer.



 

Page 1 of 2



Subscribe To Free Daily Newsletter!

Get Free News Updates Delivered Directly To Your Inbox
About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to contact us.



What's New and Popular