Serialization is an important process, but it comes at the cost of performance. Moreover, it is not required that all the classes should be serialized. We need to serialize only those classes whose OB...
Externalization is a process by which, we can implement our own functionality of serialization ie saving the state of an object, using the two methods ie readExternal(..) and writeExternal(..) by...
Reflection package is used in an application of you want to know the methods,variables, used in the class. (fore complete details refer complete reference book)
U can do this by using the following method available in Collectionstatic Collection unmodifiableCollection(Collection c)it will return u an immutable collection.
wait() and notify() both extend from object class.wait() -- causes current thread to wait until another thread invokes the notify() or notifyAll() method for this object.notify() -- wakes up a single thread that is waiting on this object's monitor.
primitive types are data types provided by a programming language as basic building blocks. Depending on the language and its implementation, primitive types may or may not have a one-to-one correspon...
The standard input, output, and error streams -- System.in, System.out, and System.err -- are all byte streams.You can use System.err.print and System.err.println to write to standard error on to the console.
Why u thinking abt JDBC. If u can connect with any database then u can insert image into database. If u r using Oracle as database then make a column with datatype BLOB. Then Importing java.awt.image...
Java Virtual Machine - Also called a "Java Interpreter", "Java Runtime" - Converts bytecode into OS specific commands. In addition to governing the execution of an application's bytecodes, the virtual...
If we tke JTextAtrea as exmple, u can see that th view (the JTextAtea itself) does not hve a getText method. But it hav a get Document methdod.The documnt is het Model, nd the jtextatrea is da view.finally u hav the Actions and the listeners. htey r teh conttrller.
JVM (java.exe) -- The interpreter which interpretes the byte code of the class and executes . JRE - A JRE is a subset of JDK. It has only the JVM (along with minimal libraries), but doesnt ...
Platform independence is nothing but the ability to run a software in different operating systems. Portability deals with the hardware and the operating system architecture. The created exe file can b...
Mohammad Mustafeezur Rahman (Xavient Information S
Jul 27th, 2006
YES!The main issue when building Java thread serialization is toaccess the thread's execution state, a state that is internal to theJava virtual machine (JVM) and not directly accessible to Javaprogra...
then how can i call a userDefine constructor i mean parameterised constructor?">
If i am Instantiating a class using "(Abc)Class.forName("Abc").newInstance()"then how can i call a userDefine constructor i mean parameterised constructor?
Ans