Go:
1 2 3 4 R4R --->Java --->> SCJP1.5 Chapter11--> Sun Java Certification
Page 1
Question:Abstract Classes
Post Your View
AnswersAn abstract class is bassiclaly a can never be instantiated,its mainly purpose to be extended the subclass,coding with abstract subclass we take advantages of polymorfism and give us the greatest degree for the flexibility and extensibility.we cant mark a class a oth abstract and final.they have a v More --- >>
By:umang Date:21.03.09
Question:Advanced Overloading
Post Your View
Answersits primitive wiening uses the smallest method argument possible.its used mainly individualy boxing and var-args are compatible with overloading.we cannt widen from one wrapper to the another type of wrapper.its cant widen an box.we can crate a box then widen .we can combine var-args either widening More --- >>
By:umang Date:25.03.09
Question:Arithmatic Operator
Post Your View
AnswersTHere are four primary math operator ehich called rithmatic oprator :
> Add
> Substact
> multyply
> and divide.
Te remindr oprator % returns the remainder of the devision.its expression are evaluated form the left to right unless we add parenthesis r unless some operator in te expressi More --- >>
By:umang Date:26.03.09
Question:Array Declaration, construction and initialisation
Post Your View
AnswersArray ca hold bassiclaly pprimitive or objets but the array itselfis always an object.when we would like to declare an array that time we muct remind hat the crackets should be in the left and right of the name .t is never legal to nclude the size of an array in the declaration .Elements in an array More --- >>
By:umang Date:25.03.09
Question:Basic Assignments
Post Your View
Answerswe have a nsome important basic assignments are thee which is mainly recognise there :
> Literals integers are implecilty ints.
> Integer epression aslways result in the int-sized result never smaller.
> here we know also that the Floating point numbers are implicily doubles.
> Compound assignme More --- >>
By:umang Date:25.03.09
Question:Constructors and Instantiation
Post Your View
AnswersA constructor is always invoked when th new object is created ts mainly use that time.constomer call the each superclass in an object inheritence. constructor have a sam name as the class. constructor can use any acess modifiers.in this time Instance members are accessible only after the super const More --- >>
By:umang Date:24.03.09
Question:Coupling and Cohesion
Post Your View
Answerscoupling refers tot he degree to which one class knows about or uses members of another class.its loose coupling is the dedirable state of having classes that are well encapsulated minimise rferences to each ther.tight oupling is the undesirable state of having classes that break the rules of loose More --- >>
By:umang Date:24.03.09
Question:Creating an abstract supersubclass concrete Subclass
Post Your View
AnswersWe have a example where we can see that public default, final and abstract class.create and abstract supar class named car and a concrete class named a sporty.the supur class ehich is belong to the package called car and sub class which can be belong to the default packages. we have a some steps whi More --- >>
By:umang Date:23.03.09
Question:Declarin an Interface
Post Your View
AnswersWhen we create an interface , we were defining a contract for the whats teh working in there and how is that working . The interface bassiclaly a contract , we can write an interface Bounceable.
When we wuld like to defne any class to treat for the bouneceable interface and provide code f More --- >>
By:umang Date:23.03.09
Question:Declaring Interface Constants
Post Your View
Answerswe have a authority to put the constant in an inerface.we have a guarentee that any class implementing the interface will have access to the some content.
By placing the constents in the interface .Any class implemented by th any packages fr the implementing the java programe.and interfac More --- >>
By:umang Date:23.03.09
Question:Default access
Post Your View
AnswersWhen a lass is in the defult access then that time when we are declaration time we dont have any More --- >>
By:umang Date:20.03.09
AnswersWhen a lass is in the defult access then that time when we are declaration time we dont have any modifier preceding. we knw that defult acss and package acess are similarily ike each oher.becouse as the property in the ackages that the classes file chow by the only classes thats the same property in More --- >>
By:umang Date:20.03.09
Question:Encapsulation
Post Your View
AnswersEncapsulation bassically use for the help , Its mainly use for the implementation behand an interface. Encasulate code have a main two most important features which is following here :
> INstance variable are kept protected.
> Getter and setter methods mainly provide the access to instance variab More --- >>
By:umang Date:24.03.09
Go:
1 2 3 4
Contact Us
|