by Dinesh Thakur Category: Data Type

Data types are the domains which determine what type of contents can be stored in a variable. In Java, there are two types of data types:



 
by Dinesh Thakur Category: Data Type

Vectors:- We know that Arrays are very useful when there is a need to use number of variables But There is a problem with Array they use only single data type or The Elements of array are always Same type For Avoiding this Problem Vectors are used.



 
by Dinesh Thakur Category: Data Type

Automatic memory management, also known as automatic garbage collection, is the practice of allowing the language implementation to keep track of used and unused memory, freeing the programmer from this burden.

 
by Dinesh Thakur Category: Data Type

Command Line Arguments are parameters that are supplied to the application program at the time of invoking it for execution. We can write Java programs that can receive and use the arguments provided in the command line.

 
by Dinesh Thakur Category: Data Type

Arrays:- When there is a need to use many variables then we There is a big problem because we will Conflict with name of variables So that in this Situation where we wants to Operate on many  numbers then we can use array .

 
by Dinesh Thakur Category: Data Type

We know in Class data members and Members Functions are Instantiated, When Object of Class is Created New Memory is Allocated by Each Object .So for Avoiding this New Memory Each Time Creation, We Uses Static Data then data will be Common to all and the static data is used without creating an object of class Static data is used without creating an object Instead with name of class .

 
by Dinesh Thakur Category: Data Type

A variable is a place in memory where we can store a value. The Java programming language defines the following kinds of variables :

 
by Dinesh Thakur Category: Data Type

Operator is a symbol that represents some operation that can be performed on data. The operators are applied to operands (onto which processing is desired). These operands can be literals, variables etc. The operators supported by Java are as follows:

 
by Dinesh Thakur Category: Data Type

In the Following example OddorEvenNumbers use mod operator to check if the number is even or odd. If the number divided by 2 and the reminder is 0 then number is even, otherwise the number is odd.

 
by Dinesh Thakur Category: Data Type

It is in two types. Those are,

 

1. Command line arguments

2. By using readLine() method

 

Page 1 of 4

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular 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.



Search Content