answersLogoWhite

0

yes

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Which is the wrapper class for the data type float?

The wrapper class for float is Float. java.lang.


What is wrapper class in java?

wrapper class is a predefined class .it is used for converting primitive data types into object type


Which wrapper class cannot take string in constructor?

useless Q


What are wrapped classes?

Wrapped classes are wrapped by Visible ones, which means wrapped ones should be invisible. Adapter Pattern is very closely related to wrapper, because it comes with 2 different flavors: object wrapper and class wrapper. There is also another way to define "wrapped" classes: a private class defined within another class. For example: class TheWrapper { private BeingWrapped _internal; } class TheVisibleOne { private class WrappedClass { } // this class is only accessible in TheVisibleOne } BeingWrapped and WrappedClass are the ones being wrapped/hide by other classes.


How do you prevent class extending in java?

Declare the class as final. final class A{ ... }


When do you declare a class as final?

By using the final keyword in the class declaration statement. Ex: public final class Test {...}


A final class can have instances?

Yes. You cannot inherit a final class but very well instantiate a final class


What is meant by wrapper classes?

Java has several "primitive" types (byte, short, int, float, double, boolean, char). Wrapper classes refer to the classes which "wrap up" each of these. For example, the Byte class contains a byte primitive and the methods to modify the class.


What are final class?

class is identifier


Discuss final method and final classes?

a method declared final can not be overridden, and a class declared as final can not be extended by its sub class.


How can you create a class which cannot be inheritable?

Declare it final.


Why would you make a class final in java?

You would make a class Final in Java if you do not want anybody to inherit the features of your class. If you declare a class as Final, then no other class can extend this class. Example: public final class X { .... } public class Y extends X { .... } Here Y cannot extend X because X is final and this code would not work.