Beginning Java Book

This book will try to get you introduced to the world of programming and Java and will cover most of the required topics for OCA Java SE 7 Programmer I certification 1ZO-803. Notes related to object oriented programming has been moved to http://javajee.com/beginning-object-oriented-programming-in-java and is also required for passing the OCA certification exam.

Tags: 
Category: 

Comments

doctor.chepete's picture

Which section talks about threads?

You can find notes on Threads @ http://www.javajee.com/java-multithreading-book. Please read, practice and ask any doubts on respective topics.

jhdsks\

dear sir i unable to find error (runtime) from blow code
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

package sum1;

/**
*
* @author ajay
*/
public class Sum1 {

/**
*
* @param r
*/
public static void main(String r[]) {
// TODO code application logic here
int x= Integer.parseInt(r[0]);
int y= Integer.parseInt(r[1]);
long z;
z=x+y;
System.out.println("sum of the integers is"+z);
}

}
error msg is
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at sum1.Sum1.main(Sum1.java:21)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
** jdk 1.8 with netbeans 8.0
please help me
thanks

Please ask the question in the forum page. Anyway u are not passing command line arguments here.

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!