Programmer Coding

Author name: admin

Exception Handling

The exception handling in java is one of the powerful tool to   handle   the   runtime errors so that normal flow of the application can be reconstructed.   What is exception   In java, exception is an incident that reduces the normal flow of the program. It is an object which is thrown at runtime.   […]

Exception Handling Read More »

keyword in java

super keyword in java   The super keyword in Java is a footnote variable which is used to refer to the time root of class object.   Whenever you produce the instance of a subclass, an instance of the root of the class is produced implicitly which is referred to by the super footnote variable.

keyword in java Read More »

OOP’s in java

Object Oriented Programming is an ideal that gives a lot of concepts such as inheritance, polymorphism, etc.   The programming idea where everything is circled as an object is known as an object-oriented programming language. small-scale is informed as the first object-oriented programming language.   OOPs (Object Oriented Programming System)   Object means a real

OOP’s in java Read More »

Java String

string is basically an object that represents sequence of char values. An array of characters works same as java string. For example:   char[] ch={‘p’,’r’,’o’,’g’,’r’,’a’,’m’,’e’,’r’}; String s=new String(ch); ssame as: String s=”progemar”; Java String class gives a lot of way(method) s to apply missions on string such as compare(), concat(), equals(), split(), length(), replace(), compareTo(),

Java String Read More »

Recursion in Java

Recursion in java is a process in which a way(method)  calls alone continuously. A way(method)  in java that                             calls alone is called recursive way(method) . Java Recursion Example 1: Factorial Number public class Example { static int factorial(int n){ if (n == 1) return 1; else return(n * factorial(n-1)); } } public static void main(String[]

Recursion in Java Read More »

Scroll to Top