Professional Documents
Culture Documents
Bc0047 Java
Bc0047 Java
4 Credits
[5 Marks]
2. Write a program in Java to find factorial of a number. How do you compile and execute this Java program? [10 Marks]
3. Write a simple Java program to illustrate the use of if else statement. [5 Marks] 4. What do you mean by an array? Explain with an example. [5 Marks]
5. Write a program to explain the Exception Handling mechanisms in Java using the keywords: try, catch and finally. [5 Marks] 6. Define (i) Inheritance (ii) Package and (iii) Interface. [10 Marks]