B. V. V.
Sangha’s
Biluru Gurubasava Mahaswamiji Institute of Technology
Mudhol-587313
------------------------------------------------------------------------------------------------
Course Name: OOPS with Java Course
Code: BCS306A
Faculty Name: Mr. Navin M Mathad
Assignment-1
Last date to submit assignment:20/10/2024 -------
---------------------------------------------------------------
--------------------------
1. Explain object-oriented principles.
2. Explain how java program is compiled and executed in Java Runtime Environment.
3. Describe the meaning of each of the keyword in “public static void main”.
4. Discuss Primitive data types used in Java.
5. Explain different lexical issues in JAVA.
6. Explain all the different type of operators available in java with example.
7. Explain type conversion, type casting and automatic type promotion rules in JAVA.
8. Explain array declaration and initialization in Java with syntax and examples.
9. Explain the following conditions with example
a) if
b) if elseif ladder
c) switch Case
10. Explain different type of literals in java.
11. Explain the following loops with syntax and example
a) while b)do while c) for
12. Explain for each version of for loop in detail with example.
13. Explain the following Jump statements with examples.
a) break b) continue c) return
14. Write a java program to find largest among three numbers using ternary operator.
15. Write a program to sort elements of array using for loop.
16. Write a program to build simple calculator using switch case.