File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Doubts from JQplus Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Doubts from JQplus" Watch "Doubts from JQplus" New topic
Author

Doubts from JQplus

Rashmi Hosalli
Ranch Hand

Joined: Jun 25, 2001
Posts: 50
Hi,
I have a couple of doubts.
1.Which method declarations will enable a class to be run as a standalone program?
Will "static void main(String[] args)" be considered wrong? I did read the explanation given in JQplus,however it doesn't say why this choice is not given any value.
2.Can color of the text on a Button be changed by using setForeground?
I don't think so...Could anyone please let me know about this.
Regards,
Rashmi
Fei Ng
Ranch Hand

Joined: Aug 26, 2000
Posts: 1241
Originally posted by Rashmi Hosalli:
Hi,
I have a couple of doubts.
1.Which method declarations will enable a class to be run as a standalone program?
Will "static void main(String[] args)" be considered wrong? I did read the explanation given in JQplus,however it doesn't say why this choice is not given any value.
2.Can color of the text on a Button be changed by using setForeground?
I don't think so...Could anyone please let me know about this.
Regards,
Rashmi

1. static void main(String[]) is fine.
2. I dont think , NO.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Doubts from JQplus
 
Similar Threads
proctected -- Pl HELP
Answers to Sun's Sample Questions
Very Urgent Regarding JQPlus
Passed SCJP
Passed SCJP