Taking input is little strange in JAVA as compared to C and C++ programming languages. Even after taking input you have to convert it according to integer before addition. In this video you will learn about adding two numbers in java using command line arguments.
After watching this video you will be able to-
1) Convert a string into Integer.
2) Explain the difference between addition and concatenation.
3) Explain when NumberFormatException occur in JAVA.
Previous videos:
1) Write First Java Program: • Write First Java Program - Java Programs f...
2) 3 Ways To Print String in Java: • 3 Ways To Print String in Java -Java Progr...
3) Command Line Arguments in Java: • Command Line Arguments in Java - Java Prog...
On this page of the site you can watch the video online Add Two Numbers in JAVA - Java Programs for Interview Preparation with a duration of hours minute second in good quality, which was uploaded by the user Learn By Watch 30 May 2016, share the link with friends and acquaintances, this video has already been watched 5,230 times on youtube and it was liked by 29 viewers. Enjoy your viewing!