Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
why do we need wrapper classesit is sometimes simpler to deal with primitives as objects moreover most of the collection classes keep objects and not
what are wrapper classesjava gives specialized classes corresponding to every of the primitive data types these are known as wrapper classesthey are
what happens to the static fields of a class during serializationthere are three exceptions in which serialization does not necessarily read and
what is externalizable interfaceexternalizable is an interface which have two methods readexternal and writeexternal these methods give you a control
what is overridingwhen a class explains a method using the similar name return type and arguments as a method in its superclass the method in the
what are checked and unchecked exceptiona checked exception is some subclass of exception or exception itself excluding class runtimeexception and
what is final classa final class cant be extended ie final class might not be subclassed a final method cant be overridden when its class is
what is static in javastatic means one per class not one for each object no matter how many example of a class might exist this means that you can
state the significance of public private protected default modifiers both singly and in combination and state the effect of package relationships on
what is an iteratorsome of the collection classes give traversal of their contents via a javautiliterator interface this interface permits you to
explain different way of using threadthe thread could be executed by using runnable interface or by inheriting from the thread classthe former is
what is the difference between an interface and an abstract classan abstract class can have instance methods that execute a default behavior an
what is an abstract classabstract class must be extendedsubclassed to be useful it serves as a template a class that is abstract may not be
describe synchronization in respect to multithreadingwith respect to multithreading synchronization is the capability to control the access of
what is the purpose of garbage collection in java and when is it usedthe purpose of garbage collection is to identify and discard objects that are no
what does it mean that a method or class is abstractan abstract class cannot be instantiated abstract methods may only be included in abstract
what is the difference between the boolean amp operator and the ampamp operatorif an expression including the boolean amp operator is evaluated both
what is constructor chaining and how is it achieved in javaa child object constructor always first requires to construct its parent which in turn
what is the difference between method overriding and overloadingoverriding is a method with the same name and arguments as in a parent
how many static initializers can you have as many as you want but the static initializers and class variable initializers are implemented in textual
what is the difference between an if statement and a switch statementthe if statement is used to select between two alternatives it uses a boolean
what restrictions are placed on method overridingoverridden methods must have the similar name argument list and return type the overriding method
what is numeric promotionnumeric promotion is the conversion of a smaller numeric type to a larger numeric type so that integer and floating-point
what is the difference between inner class and nested classwhen a class is explained within a scope od another class then it becomes inner classif
what is the difference between a while statement and a do while statementa while statement checks at the starting of a loop to see whether the next