Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

1.

Language: Way of communication b/w two objects


2.Programming language : way of communication b/w two object by using set of instructions to perform a task
We have 3 types of languages
3.Low level language: which is written by programmer can understand only system not be another programmer
Binary level language(0&1)
4.mid level language: system and programmer both cannot understandable
In the form of (English & binary).
We need to use translator
5.high level language: programmers can understandable but system can not be
In the form of English
We use translator to convert
6.Translators: it is convert one language to another language
*compiler: its converts one language to another language at ONCE
*Interpreter: it is converts one language to another language LINE BY LINE.
7.JAVA PROCESS:
Java file : it is which can store java code and ends with .java extension
Class file : it is automatically generated by compiler, it is store byte code and ends with .class extension
Process: when we written a code in java file, then send to compiler.
When we sent compiler checks, if there is no mistake in code they give compile time successful(CTS)
otherwise there is mistake in code we get compile time error(CTE).
Whenever we get CTS automatically generated class file.
Then after we send to interpreter it will convert into byte code to binary code line by line
Binary code will understand by system based on perform the task.

8.Types of data:
Integer: store numbers without decimal point
Double : store decimal point numbers
Char: store single character enclosed in single quotes(‘ ‘)
String :store group or sequence of characters , enclosed in double quotes(“ “)
Boolean: true or false.

Int ,double ,char ,String ,Boolean

10.memory: memory used to store the data


Ex: Variable , arrays, collections
11.variable: variable is a memory it is used to store the data
Variable had 3 properties (syntax)
Data-type var-name =data;

*variable declaration: the process of create a memory.


SYNTAX: Data-type var-name;
*variable re-declaration: update the variable name
SYNTAX: var-name=new -name;
*variable initialization : the process of store the data
Syntax: var-name=data;
*variable re-initialization : removing old data with updating new data;
Syntax: var-name=new-data;
12.identifiers: the name given by developer.
Rules: name can not start with digits and symbols except(_,$)
It can not be key-words and reserve words.
13.expression: combination of data/operand and symbol/operator which is produced result .
Ex: 10+5=15
Here 10 ,5 are operands and “+” is operator, 15 is result
*operand: it is data which is used to perform a task.
*operator: it is symbol which will perform a task.
We have 3 types of operators:
*unary operator: it is accept only one data (!,++,--)
*binary operator: it is accept only two data (+,-,*,/,%,<,>,=)
*ternary/tertiary operator: it is accept more than 2 data

14.java operator:

1.ARTHMETIC OPERATOR(+,-,*,/,%)
2.RELATIONAL OPERATOR(<,>,<=,>=,==,!=):which will check relational operator
I/p=int, double, charo/p= Boolean.

3.ASSIGNMENT OPERAT0R(+=,-=,*=,/=,%=)
4.LOGICAL OPERATOR(&&,||,!): which can be used for condition, its works on logical gates
I/p=true, false, relationalo/p= Boolean
(&&) (||)

OP1 OP2 RE
S

T F T

OP1 OP2 RE T T T
S
F F F
T F F
F T T
T T T

F F F

F T F 5.INCREMENT/DECREMENT(++,--): these are used to increasing /decreasing value by 1


pre-incrementation: increasing value by 1 before task(++a)
post-incrementation: increasing value by 1 after task(a++)
pre-decrement: decreasing value by 1 before task(--a)
post-decrement: decreasing value by 1 after task(a--)
6.TERTIARY/CONDITIONAL:
SYNTAX: [type of result var=(condition)? result1:result2;]
if condition true result1 execute, otherwise result2 will executes

STRINGto compare to two strings.


Syntax: (op1.equals(op2)).

15.FLOW CONTROL STATEMENT which are used to flow of execution of the program.
 DECISION STATEMENT:
LOOP STATEMENT

You might also like