iv) Cannot start any program on the host that’s executing it.
v) Cannot read certain system properties.
vi) Windows that an applet brings up look different than windows that an
application
brings up.
Scope and lifetime of variables ?
Scope of variables is only to that particular blocklifetime will be till the
block ends.variables declared above the block within the class are valid to
that inner block also.
What is Object class and java.lang ?
Object class is the superclass of all the classes and means that reference
Object class is the superclass of all the classes and means that reference
variable of type object can refer to an object of any other class. and also
defines methods like finalise,wait. java.lang contains all the basic language
functions and is imported in all the programs implicitly.
What r packages and why ? how to execute a program in a package ?
Package is a set of classes, which can be accessed by themselves and cannot
be accessed outside the package. and can be defined as package
.Package name and the directory name must be the same.And the execution
of programs in package is done by : java mypack.account where mypack is
directory name and account is program name.
View the Answer
What is a StringTokenizer ?
String Tokenizer provide parsing process in which it identifies the
delimiters provided by the user , by default delimiters are spaces, tab,
newline etc. and separates them from the tokens. Tokens are those which
are separated by delimiters.
What are nested classes ?
There are two types : static and nonstatic.
static class means the members in its enclosing class (class within class) can
Do'stlaringiz bilan baham: |