Professional Documents
Culture Documents
Dce 515
Dce 515
:___________________
RK UNIVERSITY
D.ENGG./SEM-IV/SUPPLEMENTARY/JUNE-2017
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Programmable calculator is not permissible.
SECTION – I
Q.1 (a) State whether the following statements are true or false. 10
1. We can access static methods without creating object of
the class in which method is defined.
2. Double class is a wrapper class for double primitive
data types.
3. All the command line arguments are stored in String
array.
4. To compile java file, we can use javac command.
5. To differentiate the values of member variables and
local variables within the same class, we can use “this”
keyword.
6. We can create object of an abstract class.
7. Inheritance means ability to take more than one forms.
8. To compare two different strings, we can use compare()
method.
9. Package section is compulsory section in java program.
10. We can extend more than one classes into a single
class.
Q.2 (a) List features of java and explain any four features in details. 06
(b) Differentiate method overloading and method overriding with 05
an example.
(c) State and explain use of “this” keyword with an example. 05
OR
Page 1 of 3
Q.2 (a) 1) Explain the concept of nested class in java with an 06
example.
2) Explain use of Scanner class in java with an example.
(b) Differentiate String and StringBuffer class. Explain any two 05
methods of both.
(c) Write a java program to check whether a number is prime or 05
not.
SECTION – II
Q.4 (a) Give the appropriate answer from the following questions: 10
1. The Layout manager is set by the ___________method.
(a) setLayout( ) (b) setIndex( )
(c)showLayout( ) (d)show( )
2. AWT stands for____________________.
(a) abstract writing toolkit (b) abstract window toolkit
(c) advanced window tool (d) all window table
3.__________ method is used to start thread execution.
(a) init( ) (b) resume( ) (c) go( ) (d) start( )
4. ___________keyword is used to throw manually exception.
(a) try (b) throw (c) catch (d) finally
5. Applet can be embedded in a________ file.
(a) jpeg (b) doc (c) html (d) port
6. Which method is called to print output of an applet?
(a) display( ) (b) display html
(c) print( ) (d) printapplet( )
7. The part of the code that tells what to do when an exception
occurs is called the catch block. (True / False).
Page 2 of 3
8. Applet do not need a main ( ) method (True / False).
9.Container is component in AWT that contain other
component like buttons, text fields, labels etc.
True / False.
10. Thread can acquire a lock by using synchronized keyword.
(True / False).
*************
Page 3 of 3