Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
describe the concept of encapsulation encapsulation is a technique which is used for hiding properties and behaviors of an object and allowing
what are the principle concepts of oopsprinciple concepts upon that object oriented programming and design rest they areabstraction abstraction
explain traversing through a collector using iteratorans we can access each element in collection by using iterators regardless of how they are
what is difference between time slicing and preemptive schedulingdifferences between preemptive and time scheduling arein case of preemptive
what are the difference between throw and throwsdifferences are between throws and throw are throw is employed to trigger an exception while throws
explain the polymorphism principlepolymorphism can be referred as one name many forms its the ability of methods to behave differently relying upon
when should i use abstract classes and when should i use interfaces use interface when design changing often or when various implementations only
what is the comparable interfacecomparable interface is used to sort arrays and collections of objects using collectionssort and javautils objects of
difference between hashmap and hash tablehashmapit allow us to have null values and also one null keyit is unsynchronizediterator in hashmap is
how do you decide when to use hashmap and when to use treemapwhen we want to perform deletion insertion and locate elements in a map then hashmap is
explain the both hashset and treesethashset is an unordered unsorted setits a collection set which restrict duplicate elements and also repositioning
what is the set interfacea set interface is collection of element that cant be duplicatedset interface comprise methods inherited from collectionit
what is an appletsapplets these are small java programsthey can send from one to another computer over internet by using applet viewer which supports
describe life cycle of threadthreads follow the single flow of control a thread is execution in a program the life cycles of threads are listed
explain the user defined exceptionsuser defined exceptions are the exceptions which are defined by user for specific purposed this enables custom
what are the list interface and its main implementationlist helps in collections of objects lists may include duplicate elements main implementations
what is constructora constructor is used to initialize a newly created object its called just after memory is allocated for the object it can be used
what are access specifiers available in javajava has four access specifiers which are enlisted belowpublic public methods classes and fields can be
super constructerit is used to call constructor of parent classshould be the first statement in the body of constructorusing this we can access
how are this and super used with constructorsthis constructors is used to pointing current class instancecan be used with methods or variablesused
what is an immutable objectan immutable object is one that we cant change once its created steps involved in creation of an immutable object aremake
explain garbage collectionjava uses garbage collection to free the memory by cleaning those objects which is no longer reference by any of the
describe polymorphismpolymorphism can be referred as one name many forms its the ability of methods to behave differently depending upon object who
you must design code and demonstrate a j2me program a program capable of running on mobile telephones according to the specification given in the
this is a working program that shows election results from the infamous 2000 presidential election involving a lot of floridians and hanging chads