Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech II JAVA PROGRAMMING Previous Question Paper (December - 2017 - R13)
Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.
Part A
Define data abstraction.
Answer
Data abstraction is the process of hiding complex implementation details and exposing only the essential features of an object to the user. It allows the programmer to focus on what an object does rather than how it does it, typically achieved through abstract classes and interfaces.
What is the size of char data type? Why does it differ from C language?
Answer
The char data type in Java is 2 bytes (16 bits). It differs from C because Java uses the Unicode character set to support international languages, whereas C uses the 1-byte ASCII set.
What is the use of anonymous inner class?
Answer
Sign in to view the complete answer paper.
What is a package? How to define it and access it?
Answer
Sign in to view the complete answer paper.
Differentiate between error and exception.
Answer
Sign in to view the complete answer paper.
How to assign priorities to threads?
Answer
Sign in to view the complete answer paper.
List the functions of Stack class.
Answer
Sign in to view the complete answer paper.
What is the need of JDBC type 3, type 4 drivers?
Answer
Sign in to view the complete answer paper.
What are the sources for item event?
Answer
Sign in to view the complete answer paper.
Give the hierarchy for swing components.
Answer
Sign in to view the complete answer paper.
Part B
What feature of Java makes it platform independent and portable?
Answer
Sign in to view the complete answer paper.
Is Java a robust language? Justify your answer.
Answer
Sign in to view the complete answer paper.
Differentiate between a class and object.
Answer
Sign in to view the complete answer paper.
Demonstrate constructor overloading concept.
Answer
Sign in to view the complete answer paper.
What is inheritance? Explain different forms of inheritance with suitable program segments and real world example classes.
Answer
Sign in to view the complete answer paper.
Differentiate between interface and abstract class.
Answer
Sign in to view the complete answer paper.
What is meant by dynamic method dispatch?
Answer
Sign in to view the complete answer paper.
Write a program to illustrate the use of multiple catch blocks for a try block.
Answer
Sign in to view the complete answer paper.
What are the uses of ‘throw’ and ‘throws’ clauses for exception handling?
Answer
Sign in to view the complete answer paper.
What is the difference between a thread and a process?
Answer
Sign in to view the complete answer paper.
How to achieve synchronization among threads? Write suitable code.
Answer
Sign in to view the complete answer paper.
What is a vector? How does it differ from array, list?
Answer
Sign in to view the complete answer paper.
Write a program to count number of words in a given sentence.
Answer
Sign in to view the complete answer paper.
Write a program to copy the contents of file1 to file 2. Read the names of files as command line arguments.
Answer
Sign in to view the complete answer paper.
Write about driver manager class for database connectivity.
Answer
Sign in to view the complete answer paper.
Why swing components are preferred over AWT components?
Answer
Sign in to view the complete answer paper.
What is an adapter class? What is their role in event handling?
Answer
Sign in to view the complete answer paper.
Explain the life cycle of an applet.
Answer
Sign in to view the complete answer paper.
What are the various layout managers used in Java?
Answer
Sign in to view the complete answer paper.