Exam Details

Subject java programming
Paper
Exam / Course m.sc. computer science
Department
Organization solapur university
Position
Exam Date April, 2018
City, State maharashtra, solapur


Question Paper

M.Sc. (Semester II) (CBCS) Examination Mar/Apr-2018
Computer Science
JAVA PROGRAMMING
Time: 2½ Hours
Max. Marks: 70
Instructions: Question No.1 and 2 are compulsory. Attempt any 3 questions from Q. no.3 to Q. no.7. Figures to the right indicate full marks.
Q.1

Choose correct alternatives.
10
What is the range of data type short in Java?
-128 to 127
-32768 to 32767
-2147483648 to 2147483647
None of the mentioned
Which of these keywords is used to refer to member of base class from a sub class?
Upper
Super
This
None of the above
int x y z 0 x y What will be the value of "x" after execution?

1
0
4
String in Java is
Class
Object
Variable
Character array
Which of the following statements are incorrect?
String is a class
Strings in java are mutable
Every sting is an object of class string.
Java defines a peer class of string, called StringBuffer, which allows string to be altered.
What is the return type of Constructors?
int
float
void
None
Which of the following class definitions defines a legal abstract class?
class A {abstract void unfinished()
class A {abstract void unfinished();
abstract class A {abstract void unfinished();
public class abstract A {abstract void unfinished();
Which of the following package stores all the standard java classes?
lang
java
util
java.packages
In java a thread can be created by
By extending Thread Class
By extending Object Class
By extending Exception class
None

10) Which of these operators is used to allocate memory to array variable in Java?
malloc
alloc
new
new malloc
B)State following statements are True or False.
04
method of Thread class to start that thread.
It is necessary to use new operator to initialize an array.
File class is related to input and output stream in terms of functioning.
Java is distributed language.
Q.2
A)Write short notes on the following.
08
Primitive data types in Java.
„if statement.
B)Answer the following.
06
Explain the role of JVM.
What is meant by platform independent language? Why Java is used for web programming?
Q.3
Answer the following.
14
A)Design a simple applet to display string in it and place it in html file.
B)Describe the steps to create package.
Q.4
Answer the following.
14
A)How to prevent a particular class from being inherited by other classes? How to prevent the particular members of super class from being overridden in subclass?

What is Thread? Explain the lifecycle of thread.
Q.5
Answer the following.
14
A)Write program to calculate sum digits of an integer.
B)Differentiate the Method Overloading and Method overriding with example.
Q.6
Answer the following.
14
A)Write a program to read a text file and display the output on output device.
B)Define Exception? How to create the use defined exception?
Q.7
Answer the following.
14
A)What is sting? Write any five methods to manipulate string.
B)Explain in detail every listener interfaces.


Subjects

  • .net technology
  • artifical intelligence
  • computer communication network
  • data mining and warehouse
  • data structures
  • dbms
  • digital image processing
  • distributed operating system
  • finite automata
  • internet of things
  • java programming
  • linux operating system (oet)
  • mobile computing
  • network security
  • numerical analysis
  • object oriented programming using c++
  • office automation (oet)
  • operating system
  • operations research
  • soft computing
  • software engineering
  • software testing
  • uml