Wednesday, October 26, 2016

When to use Jave Thread and Android's Asynchronous task in android developement

For long-running or CPU-intensive tasks, there are basically two ways to do this: Java threads, and Android's native AsyncTask. Use AsyncTask for: Simple network operations which do not require downloading a lot of data Disk-bound tasks that might take more than a few milliseconds Use Java threads...

Sunday, October 23, 2016

Tuesday, October 18, 2016

Inheritance

Inheritance is one of the concept in object oriented programming language. Inheritance allows the class to use the methods and properties from another class The class which inherits the derived class is called sub-class and Base class is also called asSuper-Class A Super-Class can have...

Monday, October 17, 2016

Constructors

Constructor is a block of code that allows you to create object of class. Difference between Constructor and MethodsConstructor do not have abstract, final, static and synchronised access modifiers can have only public, private Where methods can have all of thisConstructor do not have any return types...

Saturday, October 15, 2016

Types of errors occur in JAVA

System Errors Syntax Errors Semantic Errors. RunTime Errors.System Errors : This errors occurs in console.Before running the applications first system would checks the wether the system path is checked or program is installed.Sytntax Errors :This errors are actual errors which prevent the compilation...

Types of errors occur in JAVA

System Errors Syntax Errors Semantic Errors. RunTime Errors.System Errors : This errors occurs in console.Before running the applications first system would checks the wether the system path is checked or program is installed.Sytntax Errors :This errors are actual errors which prevent the compilation...

Abstract Classes and Abstract methods

Abstract ClassesA class that is declared using "abstract" keyword is known as abstract class. It may or may not include abstract methods which is abstract class can have concrete methods (Method which has implementation) along with abstract method(without implementation) followed by semicolon An abstract...

Monday, October 3, 2016