Skip to main content

Basic java

java java java, learn java online free, classroom java tutorial, beginners java, java beginners, java programming, basic java ,basic java Tutorial, basic java  Assignment 

    
    Hello friends ,  


    I am learning Basic java . my motive behind this blog is to help those want to learn Basic java online free of cost and grab each and every basic aspect of java programming .

    you can find java tutorial from basic on this blog i will post each and every assignment of basic java with source code .
    
    we will divide our course  in to Day work .
    
    Let's start Day One  Basic Java Assignment for Beginners

     Basic Requirement to learn Java Programming Download following software  
      
   1. Text Editor (Notepad, Notepad++, Edit pad, Eclipse  )
       i am using Notepad++  https://notepad-plus-plus.org/

   2. Latest JDK  current version is JDK 8 but depending on your     PC Configuration and Bit (32 bit/ 64 bit) you need to install 



   Installation Steps 


 1. Download  JDK 
  2. Double click on Exe start installation Select C: Drive Path 
Accept the licnce agrement & click on next\
  1. 3.If you want to change the installation path click on Chage (Default path is c:\programfile\java\jdk1.5.2 ) click on next
4. Click on install button to start the installatation
5.Installing java on the computer
6.Click on finished to finish installation

Following are the steps showing how to set path


1. Click on start 
2. Click on run
3. Type cmd and press enter
4. type your path like path = C:\Program Files\Java\j2sdk1.5.0\bin;(default)
5. if above screen showing then your path successfully set
6. type your program on any edit pad like note pad 
7. save it by giving .java exetion 
8. compile & run using command prompt

  It is useful to set the PATH variable permanently so it will persist after rebooting.  


       To set the PATH variable permanently, add the full path of the jdk1.7.0\bin directory to the PATH variable. Typically, this full path looks something like C:\Program Files\Java\jdk1.7.0\bin. 
        Set the PATH variable as follows on Microsoft Windows:

  1.       Click Start, then Control Panel, then System.
  2.       Click Advanced, then Environment Variables.
  3.     Add the location of the bin folder of the JDK installation for the PATH variable in System Variables. The following is a typical value for the PATH variable:


      C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.7.0\bin

. 
      Java Program to print simple message

       Save as One.java on D: in java folder 

          public class One{
                          public static void main(String args[])
                            {
                              System.out.println("good one \n ");
                              System.out.println("good Morning \n");
                            }
                         }
h


h





    
    How to run 
  1.      go to start menu  in search type  command  cmd press enter run Javac to check jdl working or not 
  2.      type  D:  (to go on  D drive )
  3.     type  cd java and press enter to go to that folder 
  4.      now compile program using   javac one.java go to path you will find two file exist in java folder that is  one.java and one.class that file i.e file created after compilation 
  5.      Run our program using  java one 
  6.     it will give you output as good one and 
    good Morning  on new line due to \n 
     


    Peoples are searching using various keywords for java tutorial which are popular java tutorial w3schools ,java tutorial for beginners, java tutorial videos,java tutorial PDF ,advanced java tutorial, java basics concepts, java basics for beginners,java programming examples

    java java java, learn java online free, classroom java tutorial, beginners java, java beginners, java programming, basic java ,basic java Tutorial, basic java  Assignment 


    

Comments

Labels

Show more

Popular posts from this blog

Java Program to Display record using JFrame and Prepaired Statement

Java Program to Display  record using JFrame and Prepaired Statement Java Program to Display  record using JFrame and Statement Here is table Design  Create table demo using two column as id  and Dname , id is primary key  Program source code  import javax.swing.*;   import java.awt.event.*;   import java.sql.*; public class FrameDisplay extends JFrame implements ActionListener{       JTextField tf1,tf2,tf3;       JButton b1,b2;      JLabel l1,l2;    String snm; Connection con;  Statement smt;   ResultSet rs; //declaration of control    FrameDisplay(){           JFrame f= new JFrame("Display Demo");   // l1=new JLabel("Enter RollNo"); l1.setBounds(150,10,150,50);         tf1=new JTextField();           tf1.setBounds(1...

java ms access connectivity

java ms access connectivity java ms access connectivity Step by Step jdbc odbc driver for ms access java database connectivity with ms access 2007 java ms access connectivity steps how to connect java with ms access 2007 database with an example how to connect ms access database in java without dsn how to connect ms access database in java without using dsn Hi Friends in this article i am using ms access 2007 database as a back end, using java simple code we will connect to emp database created in ms access , after connecting with emp we are going to perform operation like display records from emp using java simple code, add record to emp using java simple code, delete record from emp using java simple code , update /edit emp using java simple code , i am using simple because vary basic code you found here . follow steps you can watch video or download PDF very Soon  for this article .  First  Create Table  use MS ACCESS 2007 or later as shown in imag...

java MS ACCESS insert,update delete using PreparedStatement

java program delete record from table using  PreparedStatement java MS ACCESS  insert,update  delete using  PreparedStatement import java.sql.*; class DeletePreparest {   public static void main(String s[])   {     try {   int cno=Integer.parseInt(s[0]);  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");  Connection con=DriverManager.getConnection("jdbc:odbc:demodb"); // Statement smt=con.createStatement();  PreparedStatement psmt=con.prepareStatement("delete from demo where id=?");  psmt.setInt(1,cno);  int result=psmt.executeUpdate();       System.out.println("record deleted"+result);  con.close(); } catch(Exception e){    System.out.println("exce"+e);}         } }