Ws15
F–1643 Sub. Code
7BCA4C1
B.C.A. DEGREE EXAMINATION, APRIL 2019
Fourth Semester
Computer Application
JAVA PROGRAMMING
(CBCS – 2017 onwards)
Time : 3 Hours Maximum : 75 Marks
Part A (10 2 = 20)
Answer all questions.
1. What are the applications of OOP?
2. What is Java Virtual Machine?
3. What are the bitwise operators available in java?
4. What is a labeled loop?
5. How will create objects in java? Give an example.
6. Define Interface.
7. What are the advantages of Multithreading?
8. Define Exception.
9. How an Applet differ from application?
10. Write the syntax of the method which is used to draw an
circles.
Ws15
Part B (5 5 = 25)
Answer all questions, choosing either (a) or (b).
11. (a) Explain the tokens in java with example.
Or
(b) Explain the basic concepts of OOP.
12. (a) Explain any Five mathematical function in java
with example.
Or
(b) Explain switch statement with an example.
13. (a) How will you declare and initialize two dimensional
arrays? Give an example.
Or
(b) How will you extend an interface? Explain with an
example.
14. (a) How will create and import a package? Explain with
an example.
Or
(b) Explain the exception handling in java with an
example.
15. (a) Explain the Applet tag with all options with an
example.
Or
(b) How will you pass parameters to an Applet?
Explain with an example.
2 F–1643
Ws15
Part C (3 10 = 30)
Answer any three questions.
16. Explain command line argument with a program.
17. Write a Java program to count and to print the prime
numbers between 100 and 200.
18. Explain method overriding with a java program.
19. Write a java program to demonstrate the Thread by
extending Thread class. Explain.
20. Write a Java program to draw a Polygon with Five sides.
————————
3 F–1643
https://www.tnstudy.com