Minggu, 19 Juni 2016

Validate email address using  javascript

Validate email address using javascript

One of the famous interview question in JavaScript : how to validate email address in JavaScript.In order to validate a text field of HTML we need a JavaScript function.On submit form we need to call a java script function...
Baca selengkapnya
Java XML parsing using DOM parser

Java XML parsing using DOM parser

Employees.xml:Employee.javapackage javaXMLParsing;public class Employee {        String id;      String firstName;      String lastName;   ...
Baca selengkapnya

Sabtu, 18 Juni 2016

Difference between Collections and Collection in java with example program

Difference between Collections and Collection in java with example program

Famous java interview question: difference between collections and collection in javaMajor difference between Collection and Collections is Collection is an interface and Collections is a class. Both are belongs to...
Baca selengkapnya
Java Program to find missing numbers in an array

Java Program to find missing numbers in an array

To find missing numbers in an array first we need to make sure that array is sorted.After sorting we need to check that array each element with next element then we can find the difference.if Array is not sorted :To sort...
Baca selengkapnya

Jumat, 17 Juni 2016

Dynamic polymorphism in java with example program

Dynamic polymorphism in java with example program

Polymorphism means defining multiple methods with same name.(adsbygoogle = window.adsbygoogle || []).push({}); Two types of polymorphism 1.Static polymorphism2.Dynamic polymorphism.Static polymorphism:Defining multiple methods...
Baca selengkapnya

Jumat, 10 Juni 2016

toString() method in java with example program

toString() method in java with example program

toString() method belongs to object class.By default it will be called once  whenever we try to print object.toString() method by default will print classname@hex representation of hashcode.We can override this toString()...
Baca selengkapnya