Bissoy
Login
Register
Home
MCQs
Job Preparation
Higher Study
Java Program
Higher Study | Java Program
Practice Higher Study | Java Program on Bissoy — browse topics below and open any question.
Test my Merit
My Results
Create Exam
Questions
Which is true?
ক
∑F = ∑Fx + ∑Fy + ∑Fz
খ
∑F = -(∑Fx + ∑Fy + ∑Fz)
গ
∑F = ∑Fxi + ∑Fyj + ∑Fzk
ঘ
∑F = -(∑Fxi+ ∑Fyj + ∑Fzk)
How many Primitive data types are there in Java?
ক
4
খ
2
গ
8
ঘ
7
Java is a ........... language.
ক
weakly typed
খ
strongly typed
গ
moderate typed
ঘ
None of these
In Java byte, short, int and long all of these are
ক
signed
খ
unsigned
গ
Both of the above
ঘ
None of these
Size of int in Java is
ক
16 bit
খ
32 bit
গ
64 bit
ঘ
Depends on execution environment
The smallest integer type is ......... and its size is ......... bits.
ক
short, 8
খ
byte, 8
গ
short, 16
ঘ
short, 16
Size of float and double in Java is
ক
32 and 64
খ
64 and 64
গ
32 and 32
ঘ
64 and 32
Automatic type conversion in Java takes place when
ক
Two type are compatible and size of destination type is shorter than source type.
খ
Two type are compatible and size of destination type is equal of source type.
গ
Two type are compatible and size of destination type is larger than source type.
ঘ
All of the above
Which of the following automatic type conversion will be possible?
ক
short to int
খ
byte to int
গ
int to long
ঘ
All of these
In Java, the word true is ................
ক
A Java keyword
খ
A Boolean literal
গ
Same as value 1
ঘ
Same as value 0
Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct?
ক
This method is only accessible from inside the class itself and from inside all subclasses.
খ
In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined.
গ
From within protected methods you do not have access to public methods.
ঘ
This method is accessible from within the class itself and from within all classes defined in the same package as the class itself.
A package is a collection of
ক
Classes
খ
Interfaces
গ
Editing tools
ঘ
Classes and Interfaces
ঙ
Editing tools and Interfaces
A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction?
ক
Declare the method with the keyword public.
খ
Declare the method with the keyword private.
গ
Declare the method with the keyword protected.
ঘ
Do not declare the method with any accessibility modifiers.
ঙ
Declare the method with the keyword public and private.
Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class.
ক
static
খ
final
গ
abstract
ঘ
native
ঙ
volatile
In Java arrays are
ক
objects
খ
object references
গ
primitive data type
ঘ
None of the above
‹
1
2
3
4
›