hi guys
please give the correct answer and explain the answer
ques 1 which method are legal method names
- public abstract method();
x public abstract void method();
- public void abstract Method();
- public void method() {abstract;/}
- public abstract void method() {/}
ques 2
which are valid native method declaration
x public native void myMethod()
- public native myMethod()
- public void myMethod(native)
ques 3
given below is valid or not
if (i-- \> 0) valid
"\>" what mean
ques 4
String s = "message";
Frame f = new Frame();
f.add(btn);
btn.addActionListener(
new ActionListener() {
void ActionPerformed() {System.out.println(s);}
}
String str = "Good";
String other = " "+"morning"+",";
str.append(other);
str.toUpperCase();
str += "guys";
)
f.pack();
f.setVisible();