Do as directed. 1) ---------------method is used to convert an ArrayList to an array. 2) ---------------method return size of stringbuffer constructor. 3) ---------------method is used to convert string to int type. 4) --------------- is a method which is work with garbage collection 5) ---------------keyowrd is used to allocate memory of an object. 6) What is the use of printStackTrace() method 7) What is the use of sleep() method
[7 marks]What is the loop? Explain different type of loop with example.
[7 marks]What is Java? Explain any four features of Java.
[7 marks]1) Explain Integer class with example. 2) Explain Class Loader in Java. 3) Explain work of JVM.
[2 marks]1) Why Java main () method is public, static and also has one argument? 2) Why Java is Platform Independent. 3) What is Boxing, Auto boxing and Unboxing?
[2 marks]Difference between static and instance variable with example.
[7 marks]Explain Constructor with Constructor and Method Overloading with Example.
[7 marks]If we are declaring variable, method, class as final. What will happen? Explain it.
[7 marks]Explain String, StringBuffer? Also explain its method.
[7 marks]Explain Polymorphism and Encapsulation with example.
[7 marks]What is an interface? How it is important in Java? Explain with example.
[7 marks]Explain Comparable and Comparator Interface.
[7 marks]What is an Exception? How to create your own exception? Explain with example.
[7 marks]What is Thread? How many ways thread can be created in java? Write down steps for creating thread.
[7 marks]Write a note: List, Set and Map Collection.
[7 marks]What is Generic class? How to create generic class and generic method.
[7 marks]What is Stream? Explain different types of stream classes.
[7 marks]