Csit751-Core Java - Mca.
Csit751-Core Java - Mca.
Section A - Attempt any Two questions out of Four. Each question carries 7.50 marks. [15
Marks]
Question No: 1
Question No: 2
Question No: 3
Section B - Compulsory Questions. Each question carries 7.50 marks. [15 Marks]
Question No: 1
Explain the difference between method overloading and method overriding. Also, explain the
concept of polymorphism and how it is implemented in each of the above concept of method
overloading and overriding.
Question No: 2
Explain the concept of Multithreading with suitable example. Describe life cycle of thread with suitable
diagram.
Section C - Compulsory Questions. Each question carries 2.00 marks. [40 Marks]
Question No: 1
Question No: 2
Which component is responsible for converting bytecode into machine specific code?
a) JVM
b) JDK
c) JIT
d) JRE
Question No: 3
Which of these data types is used to store command line arguments?
a) Array
b) Stack
c) String
d) Integer
Question No: 4
How many arguments can be passed to main()?
a) Infinite
b) Only 1
c) System Dependent
d) None of the mentioned
Question No: 5
What do you call the languages that support classes but not polymorphism?
a) Class based language
b) Procedure Oriented language
c) Object-based language
d) If classes are supported, polymorphism will always be supported
Question No: 6
Which of these can be overloaded?
a) Methods
b) Constructors
c) All of the mentioned
d) None of the mentioned
Question No: 7
To successfully overload a method in java, the return types must be
a) Same
B) Different
C) Same but using superclass or subclass types also work
D) None
Question No: 8
Java Method overloading implements the concept of _____
a) Inheritance
b) Polymorphism
c) Encapsulation
d) None
Question No: 9
Which of these keywords are used to define an abstract class?
a) abst
b) abstract
c) Abstract
d) abstract class
Question No: 10
If a class inheriting an abstract class does not define all of its function then it will be known as?
a) Abstract
b) A simple class
c) Static class
d) None of the mentioned
Question No: 11
Super keyword in java is used to
Question No: 12
False statement about final method in java
Question No: 13
Correct statement about a class and interface is/are
a) Checked exceptions
b) UnChecked exceptions
c) Both a and b
d) Errors
Question No: 15
Which is the super class of all java exceptions classes?
1. Exception
2. RuntimeException
3. Throwable
4. IOException
Question No: 16
What is multithreaded programming?
Question No: 17
Which of these are types of multitasking?
a) Process based
b) Thread based
c) Process and Thread based
d) None of the mentioned
Question No: 18
Which method is called only once during the run time of your applet?
a. stop()
b. paint()
c. init()
d. destroy()
Question No: 19
An applet is a Java class that extends the?
A. java.Applet class
B. java class
C. Applet class
D. java.applet.Applet class
Question No: 20
What are the major components of the JDBC?
a. DriverManager, Driver, Connection, Statement, and ResultSe
b. DriverManager, Driver, Connection, and Statement
c. DriverManager, Statement, and ResultSet
d. DriverManager, Connection, Statement, and ResultSet