0% found this document useful (0 votes)
4 views

Java Paper 2

question and answers about java

Uploaded by

Ayush Kothari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
4 views

Java Paper 2

question and answers about java

Uploaded by

Ayush Kothari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
DAF-003-2034001 Seat No. B. C. A. (Sem. IV) (CBCS) (W.E.F. 2019) Examination April - 2022 CS-19 : Programming With Java Faculty Code : 003 Subject Code : 2034001 1 Time : 25 Hours] [Total Marks : 70 1 (A) Attempt the following objective Question : 4 B) (Cc ) ) (1) Full form of JDK. (2) Full form of IDE. (3) Full form of JRE. (4) Full form of JVM. Answer in brief : (any One) 2 (1) What is Whitespace? (2) What is Literal? Answer in brief’ : (any One) 3 (1) Write a program in Java to generate first n prime numbers. (2) What is Command Line Argument? Explain with example. an Answer in brief : (any One) (1) Write a program of Jagged Array and explain it. (2) Explain the Java Loop Statement and Write a program in java that calculate sum of I to 10 using do while loop. Attempt the following objective Question : 4 (1) Which keyword must be used to inherit a class? (2) A class member declared protected becomes a member of subclass of which type? (3) The class that is being inherited or subclasses is called (4) Java language supports type of inheritance. DAF-003-2034001 ] 1 [ Contd... (B) © (D) 3 (A) (B) (©) (D) 4 (A) Answer in brief : (any One) 2 (1) Explain any four string function in java. (2) Why Wrapper Class is needed? Explain with Example. Answer in brief : (any One) 3 (1) Write an application that illustrates method overriding in the different packages. (2) Explain Concept of User Defined Package in brief. Answer in brief : (any One) 5 (1) Write a java program to demonstrate multiple inheritances using interface. (2) Write a program to calculate area of circle using Constructor. Attempt the following objective Questions : 4 (1) Which of the following handles the exception when a catch is not used? (2) When does Exceptions in Java arises in code sequence? (3) Which keywords is used to manually throw an exception? (4) Which exceptions are thrown by the JVM? Answer in brief : (any One) 2 (1) What is Thread Life cycle? Explain it. (2) What is Deamon Thread? Answer in brief : (any One) 3 (1) Explain Synchronization in Thread. (2) Explain Try ... Catch Statement with suitable example Answer in brief : (any One) 5 (1) Write a program that executes two threads. One thread will print the even numbers and the another thread will print odd nvmbers from 1 to 50 (2) Write a program in Java to create, write, modify, read operations on a Text file. Attempt the following objective Questions : 4 (1) Which functions is called to display the output of an applet? (2) Which methods can be used to output a string in an applet? (3) Default layout manager for subclasses of "Window' is (4) Which is the default Layout Manager for an Applet? DAF-003-2034001 ] 2 [ Contd... (B) Answer in brief : (any One) 2 (1) What is Graphics class? (2) What is NO LAYOUT Manager? (C) Answer in brief : (any One) 3 (1) Explain Applet Life Cycle in detail. (2) Explain types of Layout Manager in detail. (D) Answer in brief : (any One) 5 (1) Write a Java program compute factorial value using Applet. (2) Explain GridBagLayout with GridBagConstraints in detail. 5 (A) Attempt the following objective Question 4 (1) The size of a frame on the screen is measured in (2) Which methods can be used to know which key is pressed? (3) Which package provides many event classes and Listener interfaces for event handling? (4) By which method you can set or change the text in a Label? (B) Answer in brief : (any One) 2 (1) Difference between JFrame, JPanel. (2) Difference between AWT and Swing Components. (C) Answer in brief : (any One) 3 (1) Explain Event Delegation Model in detail. (2) What is Adapter Classes? Explain Adapter Classes in detail. (D) Answer in brief : (any One) 5 (1) Write a calculator program using Java swing. (2) Write a Program to demonstrate the menu using swing. DAF-003-2034001 ] 3 [ 3410/92-65 ]

You might also like