What is the range of the char type?
a)0 to 216 b)0 to 215 c)0 to 216-1 d)0 to 215-1 Ans :d
What are primitive data types?
Ans : byte,short,int,long,float, double,boolean,char
What are default values of different primitive types?
Ans : int - 0
short - 0
byte - 0
long - 0 l
float - 0.0 f
double - 0.0 d
boolean - false
char - null
Converting of primitive types to objects can be explicitly.
a)True
b)False
Ans:b.
How do we change the values of the elements of the array?
Ans : The array subscript expression can be used to change the values of the elements of the array.
What is final varaible?
Ans : If a variable is declared as final variable, then you can not change its value. It becomes constant.
What is static variable?
Ans : Static variables are shared by all instances of a class.
Operators
What are operators and what are the various types of operators available in Java?
Ans: Operators are special symbols used in expressions.
The following are the types of operators:
Arithmetic operators,Assignment operators,Increment & Decrement operators,Logical operators,Biwise operators,
Comparison/Relational operators and Conditional operators
The ++ operator is used for incrementing and the -- operator is used for decrementing.
a)True
b)False
Ans:a.
Comparison/Logical operators are used for testing and magnitude.
a)True
b)False
Ans:a.
Character literals are stored as unicode characters.
a)True
b)False
Ans:a.
SOFTWARE COMPANIES
RESUME PREPRATION
INTERVIEW TIPS
C QUESTIONS
chapter 1
chapter 2
chapter 3
chapter 4
chapter 5
chapter 6
chapter 7
chapter 8
chapter 9
chapter 10
View All
DATA STRUCTURE
TECHNICAL QUESTIONS
JAVA
First chapter
Second chapter
Third chapter
Fourth chapter
Fifth chapter
Sixth chapter
Seventh chapter
Eight chapter
ninth chapter
Tenth chapter
eleventh chapter
Twevelth chapter
View All
FILE EXTENSION