PROGRAMMING FUNDAMENTALS
11.What
is java character set
-
Java character set is a valid set of character used
in java programming
-
Java supports Unicode
22 What
are Tokens
-
The smallest individual unit in a program is
known as a Token
33 How
many types of tokens are there in Java
-
There are Five Types of Tokens in Java
-
Identifiers
-
Literals
-
Punctuators
-
Operators
-
Keywords
44 What
are Identifiers
-
Identifiers are the names given to the variables
, objects etc in the program
-
Naming convention or rules to name Identifiers
o
They cannot be keywords
o
They cannot begin from any numbers or symbols
except _ $
o
They cannot have any special symbols in between
or in front of their name
MyFile is OK
My File is wrong
_in is OK
1in is wrong
In1is OK
A_to_z is OK
55 What
are Literals
-
Literals are data items that are fixed data
values. Java allows several Kind of Literals.
-
Integer – Literals
-
Character –literals
-
Floating –literals
-
Boolean-literals
-
String-literals
-
The null literals
66 What
is integer Literal
-
Integer Literal are whole numbers without any
fractional part. E.g. 11,100,34,32
-
Java supports three types of integer Literals
o
Decimal (base 10)
o
Octel (base 8)
o
Hexadecimal (base 16)
77 What
is Floating Literals
-
Floating Literals are literals with fractional
parts. E.g. 11.00, 100.01,34.00,32.01
-
Floating literals are also called as real
literals.
78 What
is a Boolean literal
-
A Boolean literal is a literal with true or
false value. T or F
99 What
is a string literal
-Literal with group of character is called
string literal e.g. “AMIT”,”JAICHAND”,”VISHAL”,”OM”
-string literal is a class datatype.
110. What
is a character Literal
-
A character literal is one character enclosed in
single quote eg. ‘A’,’J’,’V’,’O’
-
Escape sequence are also character literal
111. What
is escape sequence
-
Those are special character what represent
special meaning. More are none printable characters.
-
The escape sequence begins with \ eg. \b ,\n ,\a
,\t
112. What
is NULL Literal sequence
-
The NULL type has one value, the null reference
113. What
is a Separator
-Java supports Nine Separators.
- { } [ ] ( ) , ; .
114. What
is a java Operator .
-
Operator is a symbol that works between two
operands and give result to a operator.
115. How
many operators are there in java
-
There are 37 different operators in java
116. What
is Reference Datatype
No comments:
Post a Comment