Beginning Java Book

This book will try to get you introduced to the world of programming with Java and will cover most of the required topics for Java Programmer 1 (JP1) exam. You will also have to refer to notes on object orientation and Java lambdas for passing the JP1 exam.

Revision: Book was originally written on 2013-09-06 21:52:41 +0530, but had a major update in 2018.

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!!!