Skip to content
SWKB.NET

Java

  1. Home>
  2. Java>
  3. Page 2

Java: JDBC: Connect with existing connection

  • Post author:admin
  • Post published:April 10, 2013
  • Post category:Java: How To Examples
  • Post comments:0 Comments

If our java program runs in an already connected environment, it is not necessary to open a new connection with jdbc.It is just enough to use jdbc:default:connection string. This is…

Continue ReadingJava: JDBC: Connect with existing connection

Java: How to set Java version

  • Post author:admin
  • Post published:June 29, 2012
  • Post category:Java: Fundamentals
  • Post comments:0 Comments

With java -version at command prompt you can see which java version you are running: >java -versionjava version "1.6.0_21"Java(TM) SE Runtime Environment (build 1.6.0_21-b07)Java HotSpot(TM) Client VM (build 17.0-b17, mixed…

Continue ReadingJava: How to set Java version

Java: Recursive Decompiler

  • Post author:admin
  • Post published:June 23, 2012
  • Post category:Java: How To Examples
  • Post comments:0 Comments

In order to decompile huge amount of java code, which is in directories and sub-directories etc, you can use the following technique: Create 2 directories in the same path in…

Continue ReadingJava: Recursive Decompiler

Java: Primitive Data Types

  • Post author:admin
  • Post published:August 11, 2008
  • Post category:Java: Fundamentals
  • Post comments:0 Comments

  Primitive Type Size Range of Values (inclusive) byte 8 bits –128 to 127 short 16 bits –32768 to 32767 int 32 bits –2147483648 to 2147483647 long 64 bits –9223372036854775808…

Continue ReadingJava: Primitive Data Types
Read more about the article Java: Wooden Language

Java: Wooden Language

  • Post author:admin
  • Post published:August 9, 2008
  • Post category:Java: How To Examples
  • Post comments:0 Comments

The program below uses the typical expressions of the so called "wooden language" which is actually talking with impressive expressions but finally say nothing. I was originally inspired from the…

Continue ReadingJava: Wooden Language

Java: Connect to DB and fetch data

  • Post author:admin
  • Post published:August 9, 2008
  • Post category:Java: How To Examples
  • Post comments:0 Comments

With the code below you can connect to an Oracle database using JDBC driver and fetch some data: (you can find the libraries needed below) import java.sql.*;import java.util.Date;import java.util.Properties;public class…

Continue ReadingJava: Connect to DB and fetch data
  • Go to the previous page
  • 1
  • 2

Recent Posts

  • How to loop through Collection
  • HttpXsrfInterceptor and HttpXsrfCookieExtractor implementation example
  • Euromillions simulation
  • The birthday paradox
  • Java: Write to file
  • Tomcat: How to set encoding to unicode
  • Oracle PL/SQL: SYS_RefCursor to JSON
  • Oracle PL/SQL: Conditional Cursor
  • MySQL: Load data into table from file
  • Oracle DB: NUMBER data type

Recent Comments

    Categories

    • AJAX: How To Examples
    • Angular7: How To Examples
    • Apache
    • APEX: How To Examples
    • C++: How To Examples
    • Calculations
    • CSS: How To Examples
    • Google: How To Examples
    • Hibernate: How To examples
    • HTML: How To Examples
    • Java
    • Java: Ant
    • Java: Fundamentals
    • Java: How To Examples
    • Javascript: How To Examples
    • Joomla: Fundamentals
    • Joomla: How To Examples
    • Linux-Unix: How To Examples
    • MS-Access: How To Examples
    • MS-DOS: How To Examples
    • MySQL: How To Examples
    • News
    • Oracle
    • Oracle ADF: How To Examples
    • Oracle Apps: Fundamentals
    • Oracle Apps: Links
    • Oracle DB: Fundamentals
    • Oracle DB: How To Examples
    • Oracle DB: Links
    • Oracle OAF: How To Examples
    • Oracle PL/SQL: How To Examples
    • Oracle PL/SQL: Links
    • PHP: How To Examples
    • Siebel: How To Examples
    • SOAP
    • Tomcat
    • Various
    • VB6: How To Examples
    • WebLogic
    • Windows: How To Examples

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright - OceanWP Theme by OceanWP