Java Assignment-1
1. What is java? Why we use java and explain working of java.
2. What is Data types and Explain types of Data types in detail.
3. What is Operators? Briefly explain its types. Explain
a) >> b) << c) >>> with Example.
4. Explain Different Types of if statements and Iteration Statements with
example.
5. Write java program to convert Celsius to Fahrenheit using user input.
6. Explain Variables in detail.
7. Write java program for Simple Calculator using Switch Statements
(t*/,%.
8. Solve,
1) ++x+ xt+ + y-- + +ty + z-- - X-- - ttx + +tz - Z-
where x-3, y=2, z-4
2) Write java program to Demonstrate Bitvwise Operator where a-12,
b-25
Find as well as print 1) c-a&b 2) d= a|b 3) e= a^b 4) ~a, ~b
5) f-(-a&b) | (a&-b) &(-a|-b)
6) g--b& 0*0f;
9. Explain Arrays in Detail and Access Array elements in forward and
Backward direction using Scanner.
10. Write java program to Implement Addition of two matrices using user
input.
11. Write java program to sort the elements using for loop.
12. Explain OOP principles.
13. Explain Literals in java with example.