INTRODUCTION TO JAVA PROGRAMMING LANGUAGE - B.Tech 5th Semester Exam., 2017
INTRODUCTION TO JAVA PROGRAMMING LANGUAGE
Instructions:
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
-
Size (in bytes) of float and double in Java is:
-
Which of the following operators is used to allocate memory to array variable in Java?
-
Which of the following is an incorrect array declaration?
-
Which of the following is used as default for a member of a class if no access specifier is used for it?
-
Which of the following methods of string class is used to obtain character at specified index?
-
What does AWT stand for?
-
Which of the following keywords is used to prevent the content of a variable from being modified?
-
Which of the following functions is used to perform some actions when the object is to be destroyed?
-
What is the order of precedence (highest to lowest) of the following operators?
1. &&
2. ==
3. ?: -
Which of the following classes is related to all the exceptions that can be caught by using catch?
-
What are the various access specifiers for JAVA classes? Discuss the various types of inheritance supported by JAVA.
-
Discuss the different types of operators in JAVA along with their precedence relationship.
-
What is JDBC connection? Explain the types of JAVA drivers available for database connectivity. List the advantages and disadvantages of each of the mentioned JAVA drivers.
-
What is the difference between final, finally and finalize in JAVA? Compare and contrast between 'throw' and 'throws'.
-
What is a thread? Explain the different states in which a thread can exist. Why does a dead thread occur? What are the actions that can occur when a thread enters blocked state?
-
Explain the various OOPs concepts in JAVA.
-
What is an immutable class? How to create an immutable class?
-
What is an abstract class? Explain with example. Differentiate between abstract class and interfaces. What are the advantages of interfaces over abstract classes?
-
What are applets? Which package contains the applet class? Explain the applet life cycle methods.
-
What is the difference between swing and applet? How is a frame created and closed in an applet?
-
How can we restrict inheritance for a class? Does JAVA support multiple inheritance? Justify your answer.
-
Write a program to insert an element at the last index of an array in JAVA.
-
Explain the concept of static methods with suitable examples.
-
What is event handling? What are the steps involved in event handling?