How to use scanner in java?
import java.util.Scanner;
class classname{
public methodname(){
//Scanner declaration
Scanner s_name = new Scanner(System.in);
//Use Scanner to take input
int val = s_name.nextInt();
}
}
Is This Answer Correct ? | 0 Yes | 0 No |
write a progam hashmap & hashtable?
What is consumer interface?
Write an algorithm for quick sort?
where the static methods will live ,on stack ? can you explain brefly
Can an integer be null java?
ublic class Java_Coding_Samples { public static void JavaHungr(NumberFormatException ae){ System.out.println("integer"); } public static void JavaHungry(Exception e){ System.out.println("string"); } public static void JavaHungry(ArithmeticException ae){ System.out.println("object"); } public static void main(String[] args) { JavaHungry(null); }
What is merge sort in java?
Explain method overloading and overriding?
What is the major advantage of external iteration over internal iteration?
My application URL : http://localhost:8080/Application/Login.jsp. When a user enter this url in IE then, how it get Login.JSP Page exactly? what are the processes will happen from when we submit the URL to get Login.jsp?
What is collection api?
Is Constructor possible in abstract class in java ?