academyofjava.blogspot.com
Academy of JAVA by Rajesh Rolen: SCJP Questions
http://academyofjava.blogspot.com/2009/09/scjp-questions_2687.html
Academy of JAVA by Rajesh Rolen. This blog is to provide solutions of Java by Rajesh Rolen. Saturday, September 5, 2009. Author: Dr. Rajesh Rolen. Posted at: 12:07 AM Filed Under: SCJP Dumps. SCJP Dumps 310- 025. 1 public class foo {. 2 public static void main (string[]args). 3 try {return;}. 4 finally {system.out.printIn("Finally");}. What is the result? A The program runs and prints nothing. B The program runs and prints "Finally". C The code compiles, but an exception is thrown at runtime.
academyofjava.blogspot.com
Academy of JAVA by Rajesh Rolen: SCJP Questions
http://academyofjava.blogspot.com/2009/09/scjp-questions_9594.html
Academy of JAVA by Rajesh Rolen. This blog is to provide solutions of Java by Rajesh Rolen. Saturday, September 5, 2009. Author: Dr. Rajesh Rolen. Posted at: 12:07 AM Filed Under: SCJP Dumps. SCJP Dumps 310- 025. 1 import java.io.IOException;. 2 public class ExceptionTest(. 3 public static void main (String[]args). 6 ) catch (IOException e) (. 7 system.out.printIn("Caught IOException");. 8 ) catch (Exception e) (. 9 system.out.printIn("Caught Exception");. 12 public void methodA () {. SCJP Dumps 310- 025.
academyofjava.blogspot.com
Academy of JAVA by Rajesh Rolen: September 2009
http://academyofjava.blogspot.com/2009_09_01_archive.html
Academy of JAVA by Rajesh Rolen. This blog is to provide solutions of Java by Rajesh Rolen. Monday, September 14, 2009. Connect to more than one database. Author: Dr. Rajesh Rolen. Posted at: 10:11 PM Filed Under: Database Connectivity. Import java.sql.Connection;. Import java.sql.DriverManager;. Import java.sql.SQLException;. Public class TestConnectToMoreThanOneDatabase {. Public static Connection getOracleConnection() throws Exception {. String driver = "oracle.jdbc.driver.OracleDriver";. Import java&...
academyofjava.blogspot.com
Academy of JAVA by Rajesh Rolen: April 2011
http://academyofjava.blogspot.com/2011_04_01_archive.html
Academy of JAVA by Rajesh Rolen. This blog is to provide solutions of Java by Rajesh Rolen. Sunday, April 3, 2011. Run Java Program without Main Method. Author: Dr. Rajesh Rolen. Posted at: 11:25 PM Filed Under: Main. You can write a runnable Java program which does not have main method at all. This can be done using the static block of the class. Class MainMethodNot { static { System.out.println("This java program have run without the run method"); System.exit(0); } }. Subscribe to: Posts (Atom). Using ...
academyofjava.blogspot.com
Academy of JAVA by Rajesh Rolen: Connect to more than one database
http://academyofjava.blogspot.com/2009/09/connect-to-more-than-one-database.html
Academy of JAVA by Rajesh Rolen. This blog is to provide solutions of Java by Rajesh Rolen. Monday, September 14, 2009. Connect to more than one database. Author: Dr. Rajesh Rolen. Posted at: 10:11 PM Filed Under: Database Connectivity. Import java.sql.Connection;. Import java.sql.DriverManager;. Import java.sql.SQLException;. Public class TestConnectToMoreThanOneDatabase {. Public static Connection getOracleConnection() throws Exception {. String driver = "oracle.jdbc.driver.OracleDriver";. Calculator c...
academyofjava.blogspot.com
Academy of JAVA by Rajesh Rolen: Connect JAVA with SQL server
http://academyofjava.blogspot.com/2009/09/connect-java-with-sql-server.html
Academy of JAVA by Rajesh Rolen. This blog is to provide solutions of Java by Rajesh Rolen. Sunday, September 13, 2009. Connect JAVA with SQL server. Author: Dr. Rajesh Rolen. Posted at: 10:43 PM Filed Under: Database Connectivity. You need to find an appropriate JDBC driver to be able to connect to Microsoft SQL Server using JDBC. Following are the preferred drivers for SQL Server:. The example below shows how to make a connection to Microsoft SQL Server 2000 using jTDS driver:. DB db = new DB();. Error...
academyofjava.blogspot.com
Academy of JAVA by Rajesh Rolen: August 2009
http://academyofjava.blogspot.com/2009_08_01_archive.html
Academy of JAVA by Rajesh Rolen. This blog is to provide solutions of Java by Rajesh Rolen. Monday, August 31, 2009. How to use GridLayout. Author: Dr. Rajesh Rolen. Posted at: 8:14 PM Filed Under: Layout. Java Swing Tutorial Explaining the GridLayout. GridLayout is a layout manager that lays out a container’s components in a rectangular grid. The container is divided into equal-sized rectangles, and one component is placed in each rectangle. Import java.awt.*;. Import javax.swing.*;. If (RIGHT TO LEFT) {.
academyofjava.blogspot.com
Academy of JAVA by Rajesh Rolen: November 2009
http://academyofjava.blogspot.com/2009_11_01_archive.html
Academy of JAVA by Rajesh Rolen. This blog is to provide solutions of Java by Rajesh Rolen. Tuesday, November 24, 2009. A List of JDBC Drivers. Author: Dr. Rajesh Rolen. Posted at: 8:41 PM Filed Under: JDBC. A List of JDBC Drivers. If you need to access a database with Java, you need a driver. This is a list of the drivers available, what database they can access, who makes it, and how to contact them. COMibm.db2.jdbc.app.DB2Driver. Weblogic.jdbc.mssqlserver4.Driver. InstantDB (v3.13 and earlier). Error:...
academyofjava.blogspot.com
Academy of JAVA by Rajesh Rolen: Run Java Program without Main Method
http://academyofjava.blogspot.com/2011/04/run-java-program-without-main-method.html
Academy of JAVA by Rajesh Rolen. This blog is to provide solutions of Java by Rajesh Rolen. Sunday, April 3, 2011. Run Java Program without Main Method. Author: Dr. Rajesh Rolen. Posted at: 11:25 PM Filed Under: Main. You can write a runnable Java program which does not have main method at all. This can be done using the static block of the class. Class MainMethodNot { static { System.out.println("This java program have run without the run method"); System.exit(0); } }. Subscribe to: Post Comments (Atom).