answersLogoWhite

0

What else can I help you with?

Related Questions

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.


What is global variable in java?

A local class is declared locally within a block of Java code.You can even have classes declared inside a method. such classes are called local classes.


What is the type of class for which object cannot be created?

A class that is declared as "final" cannot be inherited.


If a data-item is declared as a protected access specifier then it can be accessed?

A class method or attribute (data item) that is declared protected can be accessed only by methods of the same class or by methods of derived classes of the class.


What is the of abatract keyword in java 1.7?

"abstract" is used for a class that is not supposed to be instantiated directly. The reason this is used is because the class is not complete; the details are supposed to be filled out in subclasses (derived classes). An abstract class will usually have one or more abstract methods; a method that is declared by name (to make sure derived classes have this method), but without a method body.


What is friend datatype in object-oriented programming?

A friend is any class, class method or function that is declared to be a friend of a class. Friends have private access to the classes that declare them friends.


Can an abstract method be declared static?

Yes. Abstract methods can be declared static


What is abstract methods?

Simply, Abstract method is a method that is declared without or containing no implementation. It has a method signature


What value is return by int main method?

1. A method declared as "int" returns an int value. 2. The main() method in Java is not declared as "int", but as "void", meaning it returns no value.


What is the difference between variable declared inside the declaration part and variable declared in scriptlet part?

Variable declared inside declaration part is treated as a global variable, which means after translation of jsp file into servletthat variable will be declared outside the service method as an instance variablethe scope is available to the complete jspVariable declared inside a scriplet will be declared inside a service method as a local variable and the scope is with in the service method.


Does adding the static keyword to the declaration of these variables in your program change their size?

No. The static keyword only specifies the way a method is declared, used and handled by the JVM and the other classes and does not modify the size it occupies in the memory.


Can variable declared in one scriplet access in another scriplet?

No. Variables declared inside a scriptlet are like method local variables which are not accessible outside the scriptlet/method.