Bulk Links

What is System.in and System.out?

Every language supports both input (like scanf()) and output (like printf()). Java supports two types of input (from command-prompt and from GUI) and two types of output (at command prompt and at GUI). The statements System.in System.out are of Java for command-prompt. System.in is used to take input from command prompt and System.out is used …

What is System.in and System.out? Read More »

Three More Questions for You

1. Why Java introduced StringBuilder with the same functionality (usage) of StringBuffer? 2. Why split() method was introduced when Java has already StringTokenizer?Ans: StringTokenizer comes with JDK1.0 version where as split() method comes with JDK1.4 version. StringTokenizer beongs to java.util package and split() is defined in String class of java.lang package. One major difference is, …

Three More Questions for You Read More »

Java comes with many classes grouped as categories

Java comes with many classes grouped as categories. A group gives common properties. A few groups are given below. 1. Wrapper classes 2. Listeners 3. Adapters 4. Layout managers 5. Byte streams 6. Character streams 7. Print streams 8. Filter streams 9. Wrapper streams 10. Components 11. Containers 12. Thread groups 13. Exceptions For different …

Java comes with many classes grouped as categories Read More »