|
|
|
Methods in Java
Note: Here,
SOP = System.out.println("");
psvm()=public static void main(String args[])
|
No. |
Java Question |
Answer/Output |
Explanation |
|
1 |
If Abc is a class and x is a variable, then accessing k as new Abc().x |
Compile Time Error |
If x is a method then it is correct. |
|
|
Let The World Know How Knowledgeable You
Are By
sharing Your Knowledge With Others If you would like to share your knowledge
relating to Technology, you can send it to us at
dailyquestion@techstudentsworld.com. If it is good, it will be published in this
site along with your name or picture. |
Copyright © 2008, Techstudentsworld.com. All Rights
Reserved.
|
|
|