Java Part 2


SUBMITTED BY: ankit007goel

DATE: July 19, 2016, 4:58 p.m.

FORMAT: Text only

SIZE: 11.3 kB

HITS: 2217

  1. Difference between Java and JavaScript
  2. Java - difference between Java and JavaScript - Java is an Object Oriented Programming Language which is developed by Sun Microsystems. It is capable of running on multiple operating systems with the help of.....
  3. How to obtain a performance profile of Java program
  4. Java - performance profile in Java - To improve the performance of a program, performance analysis is used. The usual purpose of this analysis is to determine which sections of a program to optimize......
  5. Why doesn't Java run on all platforms?
  6. Java runs mostly on all platforms. For running a Java program we need JVM on all the platforms. If JVM is not installed on any platform than we are not able to run ...
  7. Access native OS calls from a Java program
  8. To access native operating system calls from my Java program JNI is used. Java native Interface (JNI) is a programming framework that allows Java code...
  9. How do we create and use sockets in Java?
  10. A socket is a software endpoint that establishes communication between a server program and one or more client programs...
  11. Send data from a Java program to CGI program
  12. There are two methods of sending data from Java program to a CGI Program: a.) The first method is that we can use CGI scripting on both client and server by using...
  13. Purpose of the executable files
  14. Java - purpose of the executable files - java_g is a non-optimized version of java suitable for use with debuggers like jdb. When using java_g to run a program that loads a shared library...
  15. URL instance vs. URLConnection instance
  16. URLConnection is a class under java.net package. The abstract class URLConnection is the superclass of all classes that represent...
  17. How do I read a line of input at a time in Java?
  18. The standard input stream is represented by the InputStream object System.in. For reading a whole line at a time BufferedReader is chained to an InputStreamReader...
  19. Importance of Thread synchronization for multithreaded programs
  20. Threads share the same memory space, i.e., they can share resources. However, there are critical situations where it is desirable that only one thread...
  21. How to create a thread and start it running.
  22. A thread in Java is represented by an object of the Thread class. Implementing threads is achieved in one of two ways:...
  23. When should we use an event adapter class?
  24. A listener’s class has to implement Listener interface which means all the methods of the interface must be defined in the class...
  25. Component and container classes in Java
  26. The Component class is found under java.awt package. The container class is the subclass of Component class...
  27. Difference between runtime and plain exception
  28. Runtime Exceptions like out-of-bound array indices, NullPointerException , AirthmeticException are all subclasses of java.lang.RuntimeException class...
  29. Life cycle for stateless and stateful beans
  30. Stateless Session Bean Lifecycle: The stateless session bean does not become passive, so its life cycle has two stages:...
  31. Passivation and Activation in EJB
  32. Activation is a process of associating an instance with EJB object. Activating a bean is the process of restoring a stateful bean instance’s state relative to its EJB...
  33. How do we implement caching in JSP?
  34. JSP caching lets you cache tag invocation results within the Java engine. Each can be cached using different cache criteria. JSP caching is defined by following:..
  35. Different Authentication options in Servlets
  36. Authentication options available in Servlets: There are four different options for authentication in servlets...
  37. How can we use beans in JSP?
  38. Java Beans are reusable components. They are used to separate Business Logic from Presentation Logic. Internally a bean is just an instance of a class...
  39. Difference between JavaBeans and taglib directives
  40. A Java Bean is a reusable software component that can be visually manipulated in builder tools. They can’t manipulate JSP content...
  41. Scopes an object can have in a JSP page
  42. The scope of JSP objects is divided into four parts. They are: 1. Page: Page scope means the object can be accessed within the page only on which it is created...
  43. Use of Externalization interface
  44. Externalization is same as serialization. It extends Serializable interface. To externalize your object, you need to implement Externalizable interface that extends ...
  45. Widening conversion and Narrowing conversion
  46. For a primitive data types, a value narrower data type can be converted to a value of a broader data type without loss of information...
  47. How do we implement deep cloning?
  48. Deep cloning makes a distinct copy of each of object’s field. By this the two objects are not dependent on each other...
  49. Java features
  50. Java features - Simple, Object-Oriented, Robust, Distributed, Portable, Interpreted, Multithreaded, Platform Independent, Secure...
  51. Java program execution
  52. Java program execution - What is JVM? Explain its roles and functions, Why Java is called as Platform independent language. How Java executable executes on any platform where JVM is available...
  53. Java architecture
  54. Java architecture - Java programming language, Java class file format, Java Application Programming Interface, Java virtual machine...
  55. Java class
  56. Java class - features of Java class, What are accessors and mutator methods in a Java class?, Explain the importance of 'this' reference. Write a code to depicts the use of 'this' reference...
  57. Java constructors
  58. Java constructors - What is a constructor? Explain the differences between methods and constructor, Differences between constructors and methods, Write code to depict the use of constructor...
  59. Java class member
  60. Java class member - What is instance members?, What is instance variable?, What is instance method?, What is static member?, What is static variable?...
  61. Java packages
  62. Java packages - What are Java packages? Explain the importance of Java packages., Steps for creating a package in Java, Explain the packages access specifier, i.e. private, protected, public, default...
  63. Java garbage collector
  64. Java garbage collector - Explain Java Garbage collector. Why garbage collection? Brief explanation of Garbage collection algorithms., Explain the importance of finalizers in Java...
  65. Java super keyword
  66. Importance of 'super' keyword in Java - The keyword ‘super’ is used for referring parent class instance...
  67. Java method overloading and overriding
  68. Java method overloading and overriding - Define Method overloading, Uses of method overloading, uses of method overriding, Difference between overloading and overriding...
  69. Java string class
  70. Java string class - Describe Java string class. Explain methods of Java string class. Explain the characteristics of StringBuffer class.....
  71. Java inner classes
  72. Java inner classes - What is Java inner class? Explain the types of inner classes, i.e. Static member classes, Member classes, Local classes, Anonymous classes, Functionality of wrapper classes. List the primitive types and the corresponding wrapper classes...
  73. Java reflection class
  74. Java reflection class - Explain about Java reflection class - Classes, interfaces, methods, instance variables can be inspected at runtime by using reflection class...
  75. Java swing
  76. Java swing - What is Swing? Explain the need of Swing, features of Swing, Java Swing class hierarchy, need of Layout manager...
  77. Java layout manager
  78. Java layout manager - Different layout manager in Java - Border Layout, Flow Layout, Card Layout, Grid Layout, Grid Bag Layout,...
  79. Java exception handling
  80. Java exception handling - Explain the need of Exception handling, Exceptions categories, i.e. checked and unchecked exceptions, Provide the general form of Exception handling constructs with explanation, What is user defined Exception?,...
  81. Java multithreading
  82. Java multithreading - What is Multithreading? Explain the life cycle of a thread, Explain how to use thread class for Multithreading in Java, What are the methods of thread class in java?, Can your explain thread priorities?...
  83. Java file handling
  84. Java file handling - Use of Streams, Difference between Stream classes and Reader writer classes, Explain and demonstrate the use of File, RandomAccessFile classes, Explain the use of Reader and Writer classes...
  85. Java utility classes
  86. Java utility classes - What is object Serialization? Explain the use of Persisting object, step of using object Deserialization...
  87. Java socket programming
  88. Java socket programming - What is socket? Explain the features of socket, characteristics of Java socket class, InetAddress class, DatagramSocket class, DatagramPacket class...
  89. JDBC
  90. JDBC - Purposes of JDBC API, Describe 4 types of JDBC drivers and their characteristics with usages, State the functionalities of important classes in JDBC packages, Explain how to use JDBC statement to execute SQL queries...
  91. Two String objects with same values not to be equal under the == operator.
  92. The == operator compares references and not contents. It compares two objects and if they are the same object in memory and present in the same memory location...
  93. Static in java
  94. Static variables are declared with the static keyword in a class, Static variables are always called by the class name...
  95. Garbage collection mechanism in Java
  96. The purpose of garbage collection is to identify and remove objects that are no longer needed by a program...
  97. Can Abstract Class have constructors?
  98. Abstract class can have a constructor. But as we can't instantiate abstract class, we can't access it through the object...
  99. How Java addresses the issue of portability and security
  100. Addressing Portability: Many computers of different types with several operating systems are connected to network / internet...
  101. Different data types for integers and floating-point values - Java
  102. The integer and floating-point types are different in terms of the consumption of the bits which represent them...
  103. What is endianness? - Java
  104. Endianness is the process of ordering the addressable sub units such as words, bytes or bits in a longer word that is to store in an external memory...
  105. Why Java uses Unicode? - Java
  106. To enable a computer system for storing text and numbers which is understandable by humans, there should be a code that transforms characters into numbers. ...
  107. What are the different loops available in java? - Java
  108. A loop is a set of statements that is supposed to repeat one or more times. Java supports 3 loops...
  109. Primitive type - Java
  110. The key word ‘new’ is used for creation of objects. Primitive types are to use constants but not objects. Hence, new key word is not used for primitive variables...
  111. What is finalize()? Is finalize() similar to a destructor? - Java
  112. The finalize() method of java is invoked by JVM to reclaim the inaccessible memory location, When the ‘orphan’ object (without reference) is to be released, JVM invokes the finalize() method...
  113. Why does String define the equals( ) method? - Java
  114. The equals() method is defined in String class in order to test whether two strings values are same sequence of characters...
  115. String objects are immutable in java
  116. A string object that is created using “String” class is immutable. The characters of the object can not be changed / modified. There are some methods, such as split(), substring(), beginsWith() etc...

comments powered by Disqus