MCQS On Java Fundamentals 11 - 02 - 2022
MCQS On Java Fundamentals 11 - 02 - 2022
a)while(Boolean_expression) { //Statements }
b)while//loop//
c)loop//while//
d)<while>
ANS: a
ANS:a
following?
a)C language
b)Object-oriented programming
c)CSS
d)PHP
ANS:b
Java.
a)allocate
b)alloc_mem
c)new
d)new malloc
ANS:c
JavaScript.
b)array
c)date
d)null
e)NaN
ANS:e
ANS:d
ANS:c
ANS:a
ANS:a
thread at a period.
TRUE
FALSE
ANS:a
ANS:d
21. If method carries the same name as class name and method doesn't
ANS:a
23. Choose the methods that have identical names but diverse parameter
list ?
a)Overriding
b)Constructor
c)Overloading
d)None of these
ANS:d
ANS:d
ANS:b
ANS:b
27. Using which technique can users sort a group by normal order of
ANS:d
ANS:b
29. Why do Java programs need a method called main()?
a)To execute the program
b)A and C
c)To compile the program
d)None of these
ANS:d
ANS:d
31. Java permits the users to include two types of variables, name
them.
a)Primitive
b)Reference
c)A and B
d)Strings
ANS:d
32. Select the statement that defines that Java is a Robust language.
a)Java styles remove error prone conditions by highlighting it while
compiling
b)Java styles remove error prone conditions by highlighting it while
runtime checking.
c)A and B
d)Data retrieval is easy
ANS:d
ANS:d
ANS:d
39. What is the function described below known as: public class Foo{
instance; }
a)The Factory pattern
b)The Observer pattern
c)The Flyweight pattern
d)The Singleton pattern
ANS:d
ANS:d
41. Confirm the syntax for making a class derived from the class named
MyClass.
a)class MyDerived extends MyClass
b)class MyDerived implements MyClass
c)public class MyDerived : MyClass
d)None of the above
ANS:d
stagnant?
a)Program would not be functioning
b)Program would throw the js errors
c)Program would be compiled
d)Program would present the final string
ANS:d
ANS:b
45. What are the fundamental JMS-related entities required for each
JMS-enabled request?
a)Within a session, the suitable publisher, receiver or subscriber
substances
b)Within a session, delivering a contest for message transfer
c)A&D
d)A connection object delivered by the JMS servers
ANS:c
ANS:d
ANS:c
ANS:d