Surfe.be - passive income
Surfe.be - passive income

Java Multipurpose FAQ MCQ

Java Multipurpose FAQ MCQ
   


Java mcq (multiple choice question):

Java Multipurpose FAQ MCQ


Question 1: - Which of the following is the primitive type?

float

string                                                                                                      

integer
byte                                                                                          
Answer: - byte

                                                                                                            
2: - What is the range of char type?

0 to 2 ^ 16 - 1
0 to 2 ^ 16
0 to 2 ^ 15-1
0 to 2 ^ 15
Answer: - 3


3: - The garbage collector runs instantly when the system is out of memory.

truth
false

Answer: - Truth


4: - These are the keywords of Java.

NULL
Sizeof
Friend
Extends
Answer: - 4

5: - What are access modifiers?

public
private
protected
default
All of these
Answer: - 5

6: - Who developed Java?

Microsoft
Google
sun microsystems
Amazon
None of these
Answer: - 3

7: - Which of these java interpreter changes into machine code?

User code
Bit code
Byte code (virtual machine code)
machine code
Answer: - 3

8: - Which of these is the inventors of Java?

Fleming
James Gosling
Balaguru swami
Dennis Ritchie
Answer: - 2

9: - Which of the following is a assignment operator?

1. + =
2. ==
3%.%
4. =

Answer: - 3

10: - What is the full name of JVM?

Java Variable Machine
Java virtual method
Java Virtual Machine
Java Versatile Machine
Answer: - 3

11 to 20 java mcq

11: - Which is the default access specifier in Java?

private
public
protected
friendly
Answer: - 4

12: - We can not create which subclass of the following classes.

final
public
static
abstract
Answer 1

13: - Which of the following syntax errors are called?

Exception
Run-time
Compile-time
Logocal
Answer: - 3

14: - Which of the following packages are used to create and implement applet?

java.out
java.util
java.lang
java.applet
Answer: - 4

15: - JDBC was developed under

JPC
JCP
JBC
ODBC
Answer: - 2

16: - What language is Java?

weakly typed
moderate typed
strongly typed
None of these.
Answer: - 3

17: - How much is the type of primitive data type in Java?

9
5
7
8
Answer: - 3

18: - The suspend () method is used to terminate the thread.

right
wrong
Answer: - wrong

19: - Can Java source code create in Notepad creator?

right
wrong
Answer: - Correct

21 to 32 java mcq

20: - Java supports multidimensional array.

right
wrong
Answer: - Correct

21: - What is the object, class?

inheritance
invoke
incentive
instance
Answer: - 4

22: - Package is the collection of which?

Of tools
keywords
Of the object
classes and interface
Answer: - 4

23: - What do servlets use doGet (), doPost (), doHead (), doDelete () and doTrace () methods?

HttpServlets
GenericServlets
both a and B
None of these
Answer 1

24: - Where does the clone () method defer?

object class
arraylist class
abstract class
None of these
25: - Thread's life cycle is controlled by whom.

JDK
JRE
JVM
None of these
Answer: - a

26: - Java virtual machine platform is independent.

right
wrong
Answer: - wrong

27: - Web server is used to load servlet's init () method.

right
wrong
Answer: - Correct

28: - What is the full name of JDBC?

Java database community
Java database connectivity
Java database concept
Java database communication
Answer: - 2

29: - What is the full name of JIT?

java in time
java in technology
just in time
None of these
Answer: - 3

30: - What keyword is used to define the interface in Java?

intf
in
interface
None of these
Answer: - 3

31: - Which of the following does not support oop?

global variables
abstraction
polymorphism
encapsulation
Answer 1

32: - What is the full name of jar?

java archive
java application runner
java archive runner
None of these

Answer 1

https://www.amazon.in/gp/product/0143442295/ref=as_li_qf_asin_il_tl?ie=UTF8&tag=raj1307-21&creative=24630&linkCode=as2&creativeASIN=0143442295&linkId=5fa1139ba252a55925c6fec69eb016f7
Java Multipurpose FAQ MCQ Java Multipurpose FAQ MCQ Reviewed by Raj Aryan on July 06, 2019 Rating: 5

1 comment:

Powered by Blogger.