GT's Blog
Code snippets, technical articles, tips on computing and programming...
Pages
(Move to ...)
Type in Nepali Unicode Romanized - Convert Roman Nepali to Unicode Tool
▼
Scenarios in which Serialization cannot happen
›
What are the special cases in which serialization cannot happen? -> There are following scenarios in which serialization cannot happen: a...
java prevent sql injection - using PreparedStatement
›
PreparedStatement is the best way to prevent sql injection in java, rather than escaping strings. Here's a simple example taking th...
redirect message to IO stream
›
How could Java classes direct program messages to the system console, but error messages, say to a file? The class System has a variable ou...
java socket connect read string
›
Java - create socket connection to HOST:PORT and read message from there import java.io.*; import java.net.*; import java.util.*; public c...
How to serialize variables selectively
›
In a Java class, one has 10 variables. One wants to serialize only 3 variables,how can this be achieved? ->Make variables as ' trans...
maximize a JFrame window in java
›
How to Maximize a JFrame : JFrame myFrame = new JFrame(); myFrame.setVisible(true); myFrame.setExtendedState(myFrame.getExte...
1 comment:
The usage of Java packages.
›
Explain the usage of Java packages. A. This is a way to organize files when a project consists of multiple modules. It also helps resol...
Java: difference between private, protected, and public?
›
These keywords are for allowing privileges to components such as java methods and variables. Public : accessible to all classes Private : ...
java show window JFrame JDialog always on top
›
We have to use this feature of java.awt.Window : Window.alwaysOnTop(boolean); Example code : import javax.swing.JFrame; import javax.swi...
Order of catching exception in java
›
Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written? A. Yes, it does. The FileNotFoundEx...
‹
›
Home
View web version