Tuesday, December 18, 2007

JAVA 2.0 NOTE

>>PREVIOUS>>


10. Wrapper Classes - java.lang

double doubleValue( )

float floatValue( )

long longValue( )

int intValue( )

String toString( )

Boolean boleanValue( )

char charValue( )

Double and Float

boolean isNaN( )

boolean isInfinite( )

boolean equals(object obj)

int hashCode( )


Integer

static int parseInt(String str) throws NumberFormatException

static String toHexString(int num)

static String toOctalString(int num)

static Integer valueOf(String str) throws NumberFormatException


Character

isDigit( )

isLetter( )

isUpperCase( )

isLowerCase( )

toLowerCase( )

toUpperCase( )

toTitleCase( )


Process

void destroy( )

int exitValue( )

InputStream getErrorStream( )

InputStream getInputStream( )

OutputStream getOutputStream( )


Runtime

process exec(String progName) throws IOException

long freeMemory( )

void gc( )

static Runtime getRuntime( )

long totalMemory( )

void runFinalization( )


System

static void arraycopy(Object source, int sstart, object target, int tstart, int size);

static void gc( )

static void load(String librayfileName)

void runFinalization( )

static long currentTimeMillis( )


Object

Object clone( ) throws CloneNotsupportedException

boolean equals(Object obj)

void finalize( ) throws Throwable

int hashCode( )

int notify( )

int notifyAll( )

final void wait( ) throws InterruptedException

string toString( )

final Class getClass( )


Class

static Class forName(String name) throws ClassNotFoundException

string getName( )

Class getSuperclass( )

boolean isInterface( )

ClassLoader getClassLoader( )


Math

Transcendental sin(d) cos(d) tan(d)

Exponential exp(d) log(d ) pow(d1,d2) sqrt(d)

Rounding abs(I) ceil(d) floor(d) max(x,y) min(x,y) round(f)


Thread

Thread( )

Thread(ThreadGroup grp,Runnable threadob, String Thname)

void destroy( ) interrupt( ) stop( ) yield( ) start( ) run( ) resume( ) list( )

static Thread currentThread( )

final boolean isAlive( )

static boolean interrupted( )


ThreadGroup

ThreadGroup(String name)

ThreadGroup(ThreadGroup ob,String name)

final ThreadGroup getParent( )






>>NEXT>>

No comments: