Hello Friends ..
Today I did Valiveru's mock test and have some doubts.Have anyone done that test?
In one question it states:
class BaseClass{
statis void sayHello(){
System.out.println("Hi pal!!!I am BaseClass"

}}
public static SubClass extends BaseClass{
static void sayHello(){
System.out.println("Am In SubClass");}
public static void main(String args[])
{BaseClass bc=new SubClass();
bc.sayHello;}}
The answer says it will print "Hi Pal!!!I am in BaseClass".Is it correct? I thought sayHello() is being overridden while it is a static class.
Please help.
Again The statement : Static variables can be applied to instance variables,methods,code fragments and classes is TRUE or False.
Again one question goes like this:
If you want to create java GUI application using AWT,you constructed a frame calling
Frame f=new Frame();
What methods you need to call on the frame to make it visible?
A. f.setVisible(true;
B. f.setsize(true);
C. Both A & B
It says Answer C.But is B correct???
Anotherdoubt: Is there any method called Interrupted() in Thread Class??
Anotherdoubt: Is ths TRUE or FALSE :
Overridden methods return different return types and will be in different classes.
Please help friends.
Love Sarbani.