Answer following questions. 1. Justify Java is platform independent. 2. List primitive datatypes of java with its size and range. 3. Write syntax for creating and initializing an array. 4. List four Exception names in java. 5. Write code snippet showing simple inheritance. 6. Describe four methods of wrapper classes. 7. Describe generic class with example.
List and Explain Object Oriented programming concepts.
[7 marks]Define type casting and write reason for type casting. Explain its type using example.
[7 marks]Describe Switch statement, for each loop and if else ladder with their syntax and example.
[7 marks]Explain constructor overloading concept with example.
[7 marks]Discuss static modifier and its use with different class component with example.
[7 marks]Explain method overloading concept with example.
[7 marks]Discuss passing and returning objects as parameters with an example.
[7 marks]Define package and accessibility of class across different access modifiers. Describe steps to create package and access package with example.
[7 marks]Create and handle custom Exception in java.
[7 marks]Explain java support multiple inheritance with example.
[7 marks]Differentiate following 1. Checked Exception and Unchecked Exception 2. throw and throws keywords
[3 marks]Explain ArrayList and its methods and iterator with example.
[7 marks]Draw Thread life cycle and explain thread creation by extending Thread class.
[7 marks]Explain methods of String class and StringBuffer class.
[7 marks]Explain Byte stream classes to read and write in java.
[7 marks]