answersLogoWhite

0

music:rock :: dance:crumping

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Can abstract class have constructors?

A constructor of a class in invoked when a object of that class is created. As an abstract class can't have an object, so we can't create a constructor of the abstract class. But we can create a constructor of a concrete subclass of that abstract class and we have to pass the object of that concrete subclass to the abstract class.


Create an instance to an abstract class?

You cannot create an instance of an abstract class. For ex: Public abstract AbsTest { … } AbsTest ex = new AbsTest(); Lets say we have a class declaration AbsTest that is abstract and then I try to instantiate it, the compiler will give me an error stating that "An Abstract class cannot be instantiated"


What is difference between abstract class and interface in core java give brief answer with example?

Differences:Abstract class can also contain method definitions but an interface can contain only declarationsAll variables in an interface are by default public static and final whereas in Abstract class it is notAn interface can be considered as a pure abstract class that contains no method implementations and contains only declarations.


What is the abstract noun for regard?

The noun 'regard' is an abstract noun, a word for attention to or concern for something, a word for a concept; for example, "When scheduling patients, you must give regard to their waiting time."The plural form 'regards' has an additional abstract use as a word for best wishes used to express friendliness; for example, "Give my regards to you mother."The abstract noun form of the verb to regard is the gerund, regarding.


Why httpservlet class called abstract?

Because, the creators of the servlet framework cannot give all the functionality that you might want in your application. So, if they make their class abstract, you the developer will be providing all the functionality you need and still stick to the framework standards defined by them.


Give you 5 example of abstract noun and 5 example of concrete noun?

Five abstract nouns are peace, justice, economy, belief, and comfort. Five concrete nouns are tree, bird, chipmunk, hamburger, and mother.


Give you some examples of abstract?

informative abstract


What is the difference between page and pageContext in jps?

pageThe implicit variable page is of class java.lang.Object and it refers to instance of generated servlet. It is declared asObject page=thisConsider will give ErrorgetServletInfo() is not a method of java.lang.Object is validpageContextpageContext variable is of type javax.servlet.jsp.PageContext. The PageContext class is the abstract class and JSP engine vendor provides its concrete subclass.·Store reference to implicit objects,·Provide method to get and set attributes in different scopes.·Provide convenience methods for transferring request to other resources in web application.PageContext.forward("other.jsp");


Can you give the example sentence knapsack?

I carried my knapsack to my 2nd period class.


Is famous is an abstract noun or adjective give example?

The abstract noun for the adjective famous is famousness.The word 'famous' is the adjective form of the abstract noun fame.


Why instance in abstract or interface?

we can make object of interface but in abstract we can not make object of it interface ab= new Classs(): in interface we maintain multiple inhetence by use of obj of interface we if inherit two class have same fun then we give the name of that interface and call the pertucular that fun interface ab= new class() ab.add(); but in Astract Class we cannot make object of it only class class wich inherit it can make object class ab2= new Class(); and by obj we call function of drived class ob2.add();


When do you give preference to abstract classs and interface?

Abstract class provides a way of "being a [something like me]", or inheritance interface provides a set of functionality (contract) as "behaving". Abstract class provides the single inheritance and perhaps some default implementation, while interface may be implemented by different classes that have nothing to do one and other except the common interface implementation. The preference I would start with: Ask yourself that an object should be "Is a something or behave like something". If your answer is "Is a", then abstract class is more likely your good choice. But if your answer is behave like, does not need to Is a, then the interface is the way to go.