One interviewer has asked me one question that why main() method has argument "String[] arg".What is reason behind this ??
I am unable to explain it because i never think about it ......Please guys...
Type: Posts; User: gautammuktsar@gmail.com
One interviewer has asked me one question that why main() method has argument "String[] arg".What is reason behind this ??
I am unable to explain it because i never think about it ......Please guys...
hi friends .. i am new to java ..not much command over java ..so i need some help from you guys
I want to write a program for Student database using file.
how should i proceed ??
hi guys i m working on a project for my college..where i need to store the date in this format i.e dd/mm/yyyy and time in hh/mm separatly in Oracle database ...can you help me that you i get this...
hi guys i am new to J2EE . I am not getting that what is difference between the ServletRequest and HttpServletRequest ?
hi sir can you provide me a best site(url) for java Thread from which i gain more ..
i m new to java ... i have read many aticles on net regarding wait() and notify() but unable to get ..can you please make me understand about these two method with example
public class SRDemo extends Thread {
public void run() {
try {
for( int i = 0; i < 7; i++ ) {
Thread.sleep(500);
System.out.println( this.getName() + ": " + i );
}
} ...
hey guys can you tell is there any method in java which works similar like function gotoxy() in c++.
class Bank{
int getRateOfInterest(){return 0;}
}
class SBI extends Bank{
int getRateOfInterest(){return 8;}
}
class ICICI extends Bank{
int getRateOfInterest(){return 7;}
import java.util.*;
class CollectionEx{
public static void main(String arg[]){
Vector obj = new Vector();
obj.add(new Integer(99));
obj.add(new Integer(78));
obj.add(66);
then could be necessary for the class which implements the Iterator to provide defination for their all 3 methods ??...but while using Iterator to transverse the elements of collection(container) we...
Well thank you . But one thing more in case of List interface ,class ArrayList is implementing List interface but my question is which class is implementing the Interface Iterator .
i m new to java and as a matter of fact ,i m a bit confusing that how a interface contain whole methods..i have read that interface can contain only the defination of the method ..can you make me...
what is iterator ??
is it a interface or object ??
Can a class be defined inside an Interface .
interface Inter{
class x{
public static void main(String[] args){
System.out.println("Hello World!");
}
}
What happens to a static variable that is defined within a method of a class ?
hey guys please answer these objective question which was asked by r teachers..i m unable to get it
1. what is the reason for runtime error in java
2. what r the 3 reasons for COMPILATION ERROR...
thanks :)
My teacher has asked me one question that "What is difference between the final method and static method"..but i m unable to answer it properly..can you guys help me to answer it by the help of some...
got it .. these are features and conventions of the upcoming Java SE 8 ..
interface I1{
void show();
void display();
default void put(){
System.out.println("I am from interface I1");
}
}
hey guys i am not getting one point that where to use implements and where extends...
please make me understand..
interface I1{
void greet();
}
interface I2{
hi i am new to java and i have not much knowledge about it..
i m not getting the way by which println() is called ...means System.out.printl()...please explain what is "out" here..