- What makes Java Platform Independent?
- What is the difference between import and import static?
- What is mean by in, out and err?
- What is the difference among final, finally and finalizer?
- What is mean by final variable, final field, final method and final class/
- What is the difference between final value and constant value?
- What is the difference between abstract class and interface?
- What is Singleton object?
- What is the use of private constructor?
- What are factory methods?
- Can we forcibly call the Garbage Collector?
- What are static blocks?
- What are wrapper classes?
- What is the difference between PATH and CLASSPATH?
- How to check current version of JDK in your machine?
- Can we run some Java class without main()?
- What is mean by List, Set and Map?
- What is mean by try-with-resource?
- What is diamond operator?
- What is mean by auto boxing and auto unboxing?
- What is mean by compile time polymorphic?
- What is meany by run time polymorphic or dynamic method dispatch?
- What is the difference between method overloading and method overriding?
- What is the difference between equals() and ==?
- What is the difference among association, aggregation and composition?
- What is meta data? How to get meta information from a ResultSet?
- What is top level class in Java hierarchy?
- What is the difference between Error and Exception?
- What is mean by checked and unchecked exceptions?
- What is the difference between throw and throws?
- What is the difference between thread and process?
- How to start a process in Java?
- What is mean by mutable and immutable?
- What is mean by serialization?
- What is mean by synchronization?
- What is daemon thread?
- What is the difference between yield() and sleep() methods?
- What is mean by array of array or Jagged Array?
- What is mean by triple dot(...) in Java?
- How create methods which can take variable number of arguments?
- What is mean by non-interactive input?
- What is mean by command line arguments?
- What is mean by REPL in Java 9 and 10?
- What is mean by constructor chaining?
- What is mean by JAR file? How to create and use JAR files?
- What is mean by NullPointerException?
- What the difference between AWT and Swing?
- What is mean by Pluggable look and feel?
- What is the difference between paint and repaint()?
- What is a transient variable?
- What will happen if static modifier is removed from the main()?
- What is the default value of an object reference declared as an instance variable?
- What is the difference between >> and >>> ?
- If some array contains various types of data how we can extract specific type of data?
- What is the difference between inner class and nested class?
- Given the given code, print the output as Dear Rohit, Welcome to India without changing anything inside main()
import static java.lang.System.out;
public class Sample
{
public static void main(String[] args)
{
out.print("Welcome");
}
}
Comments
Post a Comment