what is the differense between native and abstract?
can we declare a method as native inside an interface?if yes then why? if no then why not?
Native keywor...
public : Public class is visible in other packages, field is visible everywhere (class must be public too)
private : Private variables or methods may be used o...
Nested top-level classes, Member classes, Local classes, Anonymous classes
Nested top-level classes- If you declare a class within a class and specify the stat...
A nested class is a class enclosed within the scope of another class. For example:
// Example 1: Nested class
//
class OuterClass
{
class NestedClass
{...
The scope of a Java variable is determined by the context in which the variable is declared. Thus a java variable can have one of the three scopes at any given...
Static variables and methods are instantiated only once per class. In other words they are class variables, not instance variables. If you change the value of a...
Nested top-level classes, Member classes, Local classes, Anonymous classes
Nested top-level classes- If you declare a class within a class and specify the st...
Variable declared inside declaration part is treated as a global variable.that means after convertion jsp file into servlet that variable will be in outside of...
Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But from a versioning perspective, what are the drawbacks o...