How do I backup / restore any kind of databases inside my java application to flate files.Are there any tools framework available to backup database to flat file like CSV, XML, or secure encrypted file, or restore from csv or xml files to databases, it should be also capable of dumping table vise restore and backup also.
I am just starting with JAVA serialization, I have one exercise to do and I need to lock serialization on any class, it is suppose to throw an exception when I attempt to serialize that class. Does anyone know how to do it?
Thank you
Hi
I have written an chat application in java, now I like to update my application whenever user registers my chat application I should get a sms on my cell.
I am not getting how should I start with messaging service. Let me know any ideas or links.
Thanks
I am trying to code a game following instructions contained in an OU TMA document which read:
In the constructor, write code to assign a new instance of Random to ran which you should create using the Random class's zero argument constructor
Will this code work?
Random ran = new Random(0) ;
I am a relative newbie to Java, and I don't understand exactly what the instructions mean
Is there any framework, whick allows to mock concrete classes, not only interfaces in java 1.4? I have third party code with a singleton class, where I wanna change one function, without touching orignal code. Is it possible?
I need encrypt data using exactly the PKCS#1 V2.0 encryption method (defined in item 7.2.1 of the PKCS#1V2 specification).
Is it already implemented for Java?
I'm thinking in something like just pass a parameter to javax.crypto.Cipher specifying "PKCS#1V2", I wonder if there is something like this?
I need to setup NACHOS java version in Linux and run some simple sample . How to setup and run simple sample ? [need some tutorials and some computer assignment with solution with NACHOS]
From what time I've spent with threads in Java, I've found these two ways to write threads.
public class ThreadA implements Runnable {
public void run() {
//Code
}
}
//with a "new Thread(threadA).start()" call
public class ThreadB extends Thread {
public ThreadB() {
super("ThreadB");
}
public void run() {
//Code
}
}
//with a "threadB.start()" call
Is there any significant difference in these two blocks of code?
Hi,
I have an application that passes in java.util.Date. I want to check whether this date is within a specified time of day (e.g. between 10:30 & 11:30), I don't care about the date, just the time of day.
Can anyone show me a simple way to do this?
Thanks
I am interested in understanding object-oriented programming in a more academic and abstract way than I currently do, and want to know if there are any object-oriented concepts Java and C++ fail to implement.
I realise neither of the languages are "pure" OO, but I am interested in what (if anything) they lack, not what they have extra.
Java's jar file format builds off of the zip file format, and supports compression of the class files inside it. When and how does the JVM decide which class files to uncompress and pull out of the jars on its classpath? Is the process dynamic and done at runtime as classes are needed, or are they all uncompressed up front before the program actually runs?
I have a closed source Java application for which vendor has provided APIs for customization. As I have no other documents, i rely completely on the API's javadoc.
I want to trace what methods are actually called in different classes for a particular use case. Is there any way to do that with eclipse?
Just seeking some advice. By profession I am primarily a front-end programmer working with ajax technologies (currently I use php as my backend language of choice). As of lately I've been looking at Java as a very good OOP language to learn and just wanted to know if you guys have any advice as to what's the best way to learn the language and achieve proficency that may some day lead to mastery.
hi friends,
How to read XML file into two dimensional array using java. Am new to this concept. Please suggest me any ideas and suggest any websites and examples regarding this question.
I am basically a web application developer, never in my career got a chance of trying out this.. can someone explain the whys and the wherefores for using Native code in java? Thanks a Ton in advance!
I anticipate using some images in my Java application. These images will be drawn onto my JPanel using g.drawImage(). The JPanel is resizable and the images should scale as the JPanel increases/decreases in size
Two questions:
What image format is best for this type of desired scalable image? For instance, in this application, an image of size 100x100 may be scaled into an image of size 30x30 or 10x10 or 300x300.
How can I write code to do this scaling?
Does anyone know of an existing Java component that implements a TokenField, similar to Cocoa's NSTokenField?
An overview of the Cocoa control is at:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TokenField%5FGuide/Introduction/Introduction.html
Suggestions for implementation?
Thanks!
I have a hexadecimal string "41464353". I want to convert it into bytes. I know the value of this hex string in byte will be "65706783". I want this as answer. Please give me a program for this in Java.
There is any concept of inline function or its replaced by some other things in java..if yes then how we use it..because i'v heard that public, static and final methods are the inline function.can we create our own inline function?
Is it possible to reliably determine the compilation time stamp of a given class for both java applications running locally and as applets and/or JNLP webapps ?
I'm looking for a Java library that is geared towards network math and already tested. Nothing particularly fancy, just something to hold ips and subnets, and do things like print a subnet mask or calculate whether an IP is within a given subnet.
Should I roll my own, or is there already a robust library for this?