Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   java practice for beginger (http://www.go4expert.com/forums/java-practice-beginger-t28430/)

vdahake 22May2012 11:38

java practice for beginger
Please give which are most use in java ( I/O main I/o, Thread, Insert data in MySQL, etc) in work . So i become good java programer in future.

shabbir 22May2012 12:23

Re: java practice for beginger
Thread moved to Java Forum

mfred90 4Jun2012 15:35

Re: java practice for beginger
Here I am trying to give you a tutorial about how to insert value to the database using java.

import java.sql.*;

public class InsertValues{
 public static void main(String[] args) {
 System.out.println("Insert the values to database table!");
  Connection con = null;
  String url = "jdbc:mysql://localhost:3306/";
  String db = "jdbctutorial";
  String driver = "com.mysql.jdbc.Driver";
  con = DriverManager.getConnection(url+db,"root","root");
  Statement st = con.createStatement();
  int val = st.executeUpdate("INSERT employee VALUES("+13+","+"'Aman'"+")");
  System.out.println("1 row affected");
  catch (SQLException s){
  System.out.println("SQL statement is not executed!");
  catch (Exception e){

RGabriel 17Oct2015 15:38

Re: java practice for beginger
You will need to learn I/O first, as its most used in java.
After that you can learn, Thread.

alia123 13Jan2016 18:16

Re: java practice for beginger
Hello,first of all if have knowledge of C and C++ and then you are going for java then it's sure that you will be a good programmer as C and C++ basics are mostly used in java.Secondly,I/O is the main thing you have to aware of it as it's used more and rest you will learn step by step.w3schools provide good tutorials if you need to follow them go through it.Else you can even visit a site" http://keenesystems.com/Services/Sof...velopment.aspx "for help from developers for more help.

RRT2010 8Feb2016 05:49

Re: java practice for beginger
All three are equally important and easy to learn quickly. To be a good programmer , you need to see how efficiently you can use them to match the non functional requirements like performance,accessibility.

All times are GMT +5.5. The time now is 14:42.