Java Variable A variable is a named memory location where we can store different types of values. The value of a variable may be changed...
Post Page Advertisement [Top]
How to set time while connecting using socket with provided IP Address /* Import these files: import java.net.InetSocketAddre...
How to get all connected local ip address. String myIP=Inet4Address.getLocalHost().getHostAddress(); for( int i=1;i<=255;i++) ...
How to convert a character to string. I n Java, character is a data type which use char keyword to make a variable char type, but this ch...
How to convert String to integer or integer to String in Java In Java, String is a predefined class in Java which can hold String Value(...
In Viusal Basic 6.0 , there is control named "Winsock" which is used to easily create connection with server or opens connection...
Exceptions are special types of error which occurred at run time and leads to abnormal termination of the program. These exceptions are h...
For MySQL: SELECT * FROM table_name ORDER BY RAND() LIMIT 1 You can also use below code to make query faster: SELECT * FROM table_nam...
For implementing object oriented model, Java provide three mechanism : Encapsulation Inheritance Polymorphism Abstraction 1. Enca...
Local Class and Anonymous Class Local Class : If we declare an inner class within a method such class is known as local class. Use it if...
How to display custom text, html and local store images on Andoid Webview public void viewData() { WebView w=(WebView)findViewByI...
A class have two or more method with same name but different parameter. This is called overloading method in Java. Example: class Overl...
Java Thread and Runnable Runnable ( java.lang.Runnable ): Runnable is basically a interface which is used to create a task(runnable code...
Thread in Java What is Thread? T hread is a class, an independent path of execution within a program. A thread execute the provided co...
Basic step for installing and setting up environment. Download Latest Version of Java From Here: JAvA WEBSITE. Install the Java. Setti...
How to create object in Java & what its benifit. As i said in early lesson that objects is a instance of a class. Each instance have ...