Professional Documents
Culture Documents
Bca4020 Winter 2016 Solved Assignment
Bca4020 Winter 2016 Solved Assignment
Bca4020 Winter 2016 Solved Assignment
winter 2016
Bca4020
2 Describe main () method in Java. What are the rules for writing a main
() method?
Answer: In a Java application, you may have many classes. Within those classes,
you may have many methods. The method that you need to execute first should
be the main() method.
Answer: The String class provides two methods that allow you to search a string
for a specified character or substring:
indexOf( ) Searches for the first occurrence of a character or substring.
lastIndexOf( ) Searches
5 Compare JDBC and ODBC.
6 Describe about:
a) Swing
b) JFC