Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Solved Assignments
Asked Questions
Answered Questions
difference between hash map and hash tablethe hashmap class is roughly equivalent to hashtable except that it is unsynchronized and allows nulls
what are the different scopes for java variablesthe scope of a java variable is explained by the context in which the variable is declared therefore
what are synchronized methods and synchronized statementssynchronized methods are methods that are used to control access to an object a thread only
what is the difference between static and non-static variablesa static variable is associated with the class as a whole rather than with specific
what is the difference between preemptive scheduling and time slicingunder preemptive scheduling the highest priority task executes unless it enters
what is synchronization and why is it importantwith respect to multithreading synchronization is the potential to control the access of multiple
how does an exception permeate through the codean unhandled exception moves up the method stack in search of a matching when an exception is thrown
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