Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Solved Assignments
Asked Questions
Answered Questions
explain the applet in javathe reason people are excited about java as more than just another oop language is because it allows them to write
write a java class that generates a random integer between 1 and 250 call the class genkeys genkeys should have a least one method that returns the
what is resuscitation trolley explain their featuresa proper resuscitation kit is mandatory for the icu in addition to trolleys that can be moved
how to write exception subclasses most exception subclasses inherit all their functionality from the superclass each subclass majorly serves as a
what is the use of throws keyword rather than explicitly catching an exception you can declare in which your method throws the exception this passes
how to catch multiple exceptions explain with exampleif multiple blocks match the exception type the first block in which matches the kinds of the
explain the different kinds of exceptions checked exceptions environmental error in which cannot necessarily be detected through testing eg
what can you do with an exception once youve caught it1fix the difficulty and try again 2do anything else instead 3exit the application along with
explain try and catch exception in javawhy use exceptions instead of return values 1forces error checking 2cleans up your code through separating the
what is an exceptions bullwhat is an exception bulltry-catch bullfinally bullthe different kinds of exceptions bullmultiple catch clauses bullthe
explain javautilrandom packagethe javautilrandom class permits you to create objects which generates pseudo-random numbers along with uniform or
explain javalangstring library in javastrings are objects specifically theyre instances of the class javalangstring this class has several methods
describe inner classes in javaan inner class is a class whose body is described inside another class referred to as the top-level class for instance
what is runnable jar archivesyou can run a program stored within the jar archive that has a main method like this java -cp eharoldjar
what is jar archivesjar archives are zip archives along with a different extension they contain a hierarchy of files and directories in spirit a jar
explain the term naming packages in detailsas you saw previously name space conflicts arise if two pieces of code declare the similar name java
how to wrapping your own packages in javajava does not limit you to using just the system supplied packages you can write your own as well you write
how to implementing the cloneable interfacethe javalangobject class contains a clone method which returns a bitwise copy of the current object
how to implementing interfaces in javato actually utilize this interface you create a class that involves a public double calculatetariff method and
describe interfaces in java langaugeinterfaces are the further level of abstraction an interface is like a class along with nothing but abstract
explain abstract method in javajava permits methods and classes to be declared abstract an abstract method is not actually implemented in the class
describe final argumentsat last you can declare in which method arguments are final this means that the techniques will not directly change them
explain final fields you may also declare fields to be final this is not the similar thing as declaring a method or class to be final while a field
describe the final keyword the final keyword is used in various different contexts as a modifier meaning in which what it modifies cannot be changed
give an examples of javalangmath methodshere is an instance program in which exercises most of the routines in javalangmath if your high school math