What is Exception Handling in Java?In Java, what are the…

Question Answered step-by-step What is Exception Handling in Java?In Java, what are the… What is Exception Handling in Java?In Java, what are the differences between a Checked andUnchecked? What is the base class for Error and Exception classes in Java? What is a finally  block in Java? What is the use of finally block in Java? Can we finally block without creating a catch block? Do we have to always put a catch block after a try block? In what scenarios, a finally block will not be executed? Can we re-throw an Exception in Java? What is the difference between throw and throws in Java? What is the concept of Exception Propagation? When we override a method in a Child class, can we throw an additional Exception that is not thrown by the Parent class method?How Multi-threading works in Java?What are the advantages of Multithreading? What are the disadvantages of  Multithreading? What is a Thread in Java? What is a Thread’s priority and how it is used in scheduling? What are the differences between Pre-emptive Scheduling Scheduler and Time Slicing Scheduler? Is it possible to call run() method instead of start() on a thread inJava?  How will you make a user thread into daemon thread if it has already started? Can we start a thread two times in Java? In what scenarios can we interrupt a thread? In Java, is it possible to lock an object for exclusive use by a thread? How notify() method is different from notifyAll() method? What are the differences between the two data structures: a Vector and an ArrayList? What are the differences between Collection and Collections in Java? In which scenario, LinkedList is better than ArrayList in Java? What are the differences between a List and Set collection in Java? What are the differences between a HashSet and TreeSet collection in Java?  In Java, how will you decide when to use a List, Set or a Map collection? What are the differences between a HashMap and a Hashtable in Java? What are the differences between a HashMap and a TreeMap?  What is Runtime Polymorphism?Is it possible to achieve Runtime Polymorphism by data members in  Java? Explain the difference between static and dynamic binding? AbstractionWhat is Abstraction in Object Oriented programming? How is Abstraction different from Encapsulation? What is an abstract class in Java? Is it allowed to mark a method abstract method without marking the class abstract? Is it allowed to mark a method abstract as well as final? Can we instantiate an abstract class in Java? What is an interface in Java? Is it allowed to mark an interface method as static? Why an Interface cannot be marked as final in Java? What is a marker interface? What can we use instead of Marker interface? How Annotations are better than Marker Interfaces?What is the difference between abstract class and interface in Java? Does Java allow us to use private and protected modifiers forvariables in interfaces? How can we cast to an object reference to an interface reference?Final How can you change the value of a final variable in Java? Can a class be marked final in Java? How can we final method in Java? How can we prohibit inheritance in Java? Why Integer class in final in Java? What is a blank final variable in Java? How can we initialize a blank final variable? Is it allowed to declare main method as final?  What is the purpose of package in Java? What is java.lang package? Which is the most important class in Java?  Is it mandatory to import java.lang package every time? Can you import same package or class twice in your class? What is a static import in Java?  What is the difference between import static com.test.Fooclass and import com.test.Fooclass? Internationalization  What is Locale in Java?How will you use a specific Locale in Java? What is the serialization? . What is the purpose of serialization? What is Deserialization? What is Serialization and Deserialization conceptually?  Why do we mark a data member transient? Is it allowed to mark a method as transient? How does marking a field as transient makes it possible to serialize anObject? What is Externalizable interface in Java? What is the difference between Serializable and Externalizable interface? What is Reflection in Java? What are the uses of Reflection in Java?  How can we access private method of a class from outside the class? How can we an Object dynamically at Runtime in Java? What is Garbage Collection in Java?  Why Java provides Garbage Collector? What is the purpose of gc() in Java? How does Garbage Collection work in Java? .When does an object become eligible for Garbage Collection in Java?Why do we use finalize() method in Java? What are the different types of References in Java?  How can we reference an unreferenced object again? What kind of process is the Garbage collector thread? What is the purpose of the Runtime class? How can we invoke an external process in Java? What are the uses of Runtime class?  What is a Nested class? How many types of Nested classes are in Java? Why do we use Nested Classes? What is the difference between a Nested class and an Inner class in Java?  What is a Nested interface? How can we access the non-final local variable, inside a Local InnerClass? Can an Interface be defined in a Class? Do we have to explicitly mark a Nested interface public static? Why do we use Static Nested interface in Java? What is the meaning of Immutable in the context of String class in java? Why a String object is considered immutable in java?  How many objects does following code create? How many ways are there in Java to  String object? How many objects does following code create?  What is Runtime Polymorphism?Is it possible to achieve Runtime Polymorphism by data members in  Java? Explain the difference between static and dynamic binding? AbstractionWhat is Abstraction in Object Oriented programming? How is Abstraction different from Encapsulation? What is an abstract class in Java? Is it allowed to mark a method abstract method without marking the class abstract? Is it allowed to mark a method abstract as well as final? Can we instantiate an abstract class in Java? What is an interface in Java? Is it allowed to mark an interface method as static? Why an Interface cannot be marked as final in Java? What is a marker interface? What can we use instead of Marker interface? How Annotations are better than Marker Interfaces?What is the difference between abstract class and interface in Java? Does Java allow us to use private and protected modifiers forvariables in interfaces? How can we cast to an object reference to an interface reference?Final How can you change the value of a final variable in Java? Can a class be marked final in Java? How can we final method in Java? How can we prohibit inheritance in Java? Why Integer class in final in Java? What is a blank final variable in Java? How can we initialize a blank final variable? Is it allowed to declare main method as final?  What is the purpose of package in Java? What is java.lang package? Which is the most important class in Java?  Is it mandatory to import java.lang package every time? Can you import same package or class twice in your class? What is a static import in Java?  What is the difference between import static com.test.Fooclass and import com.test.Fooclass? Internationalization  What is Locale in Java?How will you use a specific Locale in Java? What is the serialization? . What is the purpose of serialization? What is Deserialization? What is Serialization and Deserialization conceptually?  Why do we mark a data member transient? Is it allowed to mark a method as transient? How does marking a field as transient makes it possible to serialize anObject? What is Externalizable interface in Java? What is the difference between Serializable and Externalizable interface? What is Reflection in Java? What are the uses of Reflection in Java?  How can we access private method of a class from outside the class? How can we an Object dynamically at Runtime in Java? What is Garbage Collection in Java?  Why Java provides Garbage Collector? What is the purpose of gc() in Java? How does Garbage Collection work in Java? .When does an object become eligible for Garbage Collection in Java?Why do we use finalize() method in Java? What are the different types of References in Java?  How can we reference an unreferenced object again? What kind of process is the Garbage collector thread? What is the purpose of the Runtime class? How can we invoke an external process in Java? What are the uses of Runtime class?  What is a Nested class? How many types of Nested classes are in Java? Why do we use Nested Classes? What is the difference between a Nested class and an Inner class in Java?  What is a Nested interface? How can we access the non-final local variable, inside a Local InnerClass? Can an Interface be defined in a Class? Do we have to explicitly mark a Nested interface public static? Why do we use Static Nested interface in Java? What is the meaning of Immutable in the context of String class in java? Why a String object is considered immutable in java?  How many objects does following code create? How many ways are there in Java to  String object? How many objects does following code create?   Engineering & Technology Computer Science Share QuestionEmailCopy link Comments (0)