Java Flashcards
(15 cards)
What is javva? state its features.
Jave is a high level programming language and platform which is used widely to create various types of computer spplicstions.
Object oriented language
Security
build in graphics
light weight code
Java compiliator process
Java complier instead of translating to machine language, trnaslate into bytecode (ptimistized set of instructions) when the bytecode is to be run on the computer, jvm a java interpreter trnaslates the code into machine langause.
What are the two types of character set?
ascii, unicode
Tokens.
Key words-
indentifier-
literal-
Tokens are a set of characters grouped together as a symbols.
Key words are reserved words which are meaning ful to java compiler.
indetifies is a fundamental java block.
literal are data items which are fixed data vlues
operators
What are data types?-primitave data type
non primitive data type
Data type is a keyword which detervimes what type of data a particular variable holds. data is imp as it only allows legal data types to be important
Primitive- aka build in data type they are fundamentsa data type and are an integral part of the java programme. it is of 8 times
NOn- aka reference data it is of 3 types- class, arrays, interface
variable- string/char
variable is an identifier which denotes a location in comp memory to store a data value
string stores one more than character
char stores only one
variable name
must not be a keyword
can start with apabet
must be one word
flow control statements - types
statements which break the flow of execution by implementing a decision branch to to your program to execute a particular block of code
why does java uses uni?
Earlier ascci could only represent 226 characters. But java was for world wide use. So, java uses unicode as it reprement most worlds languages.
imp of data type
Data type ensures that only legal data types get imported
define wora
WORA stands for write once, repeat anywhere. Java program needs to write only once. It can be run over in other programs. Without making any changes in the program
rules of forminh indetifier
Must not be a keyword
must not start with a digit
can be of any lengths
tyo=pes of literals’=
int, boolren, floating,char, strinh
Int represents whole number
booleen represents false and true. Floating represents decimal point values.
Rapid application development
method of