Why scanner is used in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What is an error in java?

0 Answers  


What is the importance of static variable?

0 Answers  


What are the 4 versions of java?

0 Answers  


hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class

1 Answers  


Explain the features of interfaces in java?

0 Answers  






Can we use string in the switch case?

0 Answers  


What is difference between classpath and path variables in java?

0 Answers  


Why are generics used?

0 Answers  


What is set string?

0 Answers  


What is the use of Getters and Setters method ?

4 Answers  


public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }

0 Answers  


Can a private method of a superclass be declared within a subclass?

0 Answers  


Categories