As long as your connection object is not declared as a class level object, (ie an object declared outside all functions), and as long as the connection object b...
No. A level class can not be private or protected. It can have either "public" or no modifier. If it does not have a modifier it is supposed to have a default...
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...
What if the main method is declared as private?The program compiles properly but at runtime it will give "Main method not public." message.
What is meant by...
Public: Any thing declared as public can be accessed from anywhere.
Private: Any thing declared as private can’t be seen outside of its class.
Protected...
No, a top level class can not be private or protected. It can have either "public" or no modifier. If it does not have a modifier it is supposed to have a defau...
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...