JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2023 JAVA PROGRAMMING Previous Question Paper (March/April - 2023 - R17)
Note: i) Question paper consists of Part A, Part B.
ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions.
iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
Discuss about various data types in Java.
Answer
Java data types are categorized into two groups: primitive and non-primitive. Primitive types are predefined and include: byte (8-bit), short (16-bit), int (32-bit), long (64-bit), float (32-bit), double (64-bit), char (16-bit Unicode), and boolean (true/false). Non-primitive types, or reference types, include classes, interfaces, and arrays, which store references to objects rather than the actual values.
Explain about using final with inheritance.
Answer
The final keyword in Java restricts inheritance and method overriding. When applied to a class, it prevents the class from being subclassed (e.g., public final class A {}). When applied to a method, it prevents subclasses from overriding that specific method, ensuring the implementation remains constant throughout the inheritance hierarchy.
Describe exception hierarchy.
Answer
Sign in to view the complete answer paper.
Explain about CheckboxGroup.
Answer
Sign in to view the complete answer paper.
Discuss about the swing buttons.
Answer
Sign in to view the complete answer paper.
Part B
Illustrate various control statements in JAVA.
Answer
Sign in to view the complete answer paper.
Explain about overloading methods and constructors with examples.
Answer
Sign in to view the complete answer paper.
Write a Java program to generate Fibonacci series using recursion concept.
Answer
Sign in to view the complete answer paper.
Explain about string classes with examples.
Answer
Sign in to view the complete answer paper.
Distinguish between specialization and specification.
Answer
Sign in to view the complete answer paper.
Describe the differences between classes and interfaces with examples.
Answer
Sign in to view the complete answer paper.
What is an interface? Explain about implementing interfaces in detail.
Answer
Sign in to view the complete answer paper.
Discuss about method overriding and abstract classes.
Answer
Sign in to view the complete answer paper.
What are built-in exceptions? Explain.
Answer
Sign in to view the complete answer paper.
Explain about interthread communication in detail.
Answer
Sign in to view the complete answer paper.
Discuss about thread life cycle and creating threads.
Answer
Sign in to view the complete answer paper.
What is the use of try, catch, throw, throws and finally statements in JAVA?
Answer
Sign in to view the complete answer paper.
Explain about GridBagLayout class.
Answer
Sign in to view the complete answer paper.
Discuss about handling mouse and keyboard events.
Answer
Sign in to view the complete answer paper.
What are constructors of TextField? Explain.
Answer
Sign in to view the complete answer paper.
Explain about the AWT class hierarchy in detail.
Answer
Sign in to view the complete answer paper.
Explain the following:
Components and containers
Answer
Sign in to view the complete answer paper.
Limitations of AWT.
Answer
Sign in to view the complete answer paper.
Explain the following:
Creating applets
Answer
Sign in to view the complete answer paper.
Trees and JTable.
Answer
Sign in to view the complete answer paper.