This document discusses constants, variables, and data types in Java. It defines two main data types - primitive and reference/object. The eight primitive data types are char, int, byte, float, long, short, double, and boolean. Reference variables are created using class constructors. There are three types of variables - local, instance, and class/static. Local variables are declared in methods/constructors/blocks and are only visible there. Instance variables are declared in a class but outside methods/constructors/blocks. Class variables are declared with the static keyword and can be accessed via the class name. Constants are declared with the final keyword and hold the same value during their existence.
Hybridoma Technology ( Production , Purification , and Application )
Constant a,variables and data types
1. CONSTANT s,VARIABLES AND DATA TYPES
Presenter Name
Mithilesh Kumar
Tarun Kumar
Saroj Kumar
Presentation Date :-02/08/2017
2. Data types :-
Based on the data type of a variable, the operating system
allocates memory and decides what can be stored in the
reserved memory. Therefore, by assigning different data
types to variables, you can store integers, decimals, or
characters in these variables.
There are two data types available in Java:
1. Primitive Data types
2. Reference/Object Data types
3. 1. Primitive Data types
There are eight primitive data types supported by Java. Primitive data
types are predefined by the language and named by a keyword.
1. Char :- Example: char letter A ='A'
2. Int :-Example: int a = 100000, int b = -200000
3. Bytes:- Example: byte a = 100 , byte b = -50
4. Float:-Example: float f1 = 234.5f
5. Long:-Example: long a = 100000L, long b = -200000L
6. Short:-
7. Double:-Example: double d1 = 123.4
8. Boolean :- Example: boolean one = true
4. 2. Reference Datatypes
Reference variables are created using defined
constructors of the classes. They are used to
access objects.
Default value of any reference variable is null.
Example: Animal animal = new Animal("giraffe");
5. VARIABLES :-
• A variable provides us with named storage that our
programs can manipulate. A variable is a name for
a location in memory
You must declare all variables before they can be used. Following is the basic form
of a variable declaration:
• There are three types of variable.
1. Local variables
2. Instance variables
3. Class/Static variables
data type variable [ = value][, variable [= value] ...] ;
6. 1.Local Variables
• Local variables are declared in methods, constructors, or
blocks.
• Local variables are visible only within the declared
method, constructor, or block.
2. Instance Variables
• Instance variables are declared in a class, but outside a
method, constructor or any block.
• Instance variables can be declared in class level before or
after use.
7. 3.Class/static Variables
• Class variables also known as static variables
are declared with the static keyword in a class .
• Static variables are created when the program
starts and destroyed when the program stops.
• Static variables can be accessed by calling with
the class name ClassName.VariableName
8. Constants :-
• Aconstant is an identifier that is similar to a variable
except that it holds the same value during its entire existence.
• As the name implies, it is constant, not variable
• In Java, we use the reserved word final in the declaration of a
constant
• final int MIN_HEIGHT = 69;
Editor's Notes
This template can be used as a starter file to give updates for project milestones.
Sections
Right-click on a slide to add sections. Sections can help to organize your slides or facilitate collaboration between multiple authors.
Notes
Use the Notes section for delivery notes or to provide additional details for the audience. View these notes in Presentation View during your presentation.
Keep in mind the font size (important for accessibility, visibility, videotaping, and online production)
Coordinated colors
Pay particular attention to the graphs, charts, and text boxes.
Consider that attendees will print in black and white or grayscale. Run a test print to make sure your colors work when printed in pure black and white and grayscale.
Graphics, tables, and graphs
Keep it simple: If possible, use consistent, non-distracting styles and colors.
Label all graphs and tables.
What is the project about?
Define the goal of this project
Is it similar to projects in the past or is it a new effort?
Define the scope of this project
Is it an independent project or is it related to other projects?
* Note that this slide is not necessary for weekly status meetings
* If any of these issues caused a schedule delay or need to be discussed further, include details in next slide.
Duplicate this slide as necessary if there is more than one issue.
This and related slides can be moved to the appendix or hidden if necessary.
What are the dependencies that affect the timeline, cost, and output of this project?