• Convert Wrapper Class to Data Types

    What is Wrapper Class in Java Program? Integer, String, Double, Short, Long, Float etc are wrapper class in java programs. These classes have many important methods which are using in programming. Like convert String class value to int data types. In this step will use parseInt(StringValue) method. And this method is belongs to Integer Class. […]

  • Java multithreading Inter-thread process

    What is Java multithreading Inter-thread process? In Java multithreading process we face producer-consumer problem. It is called Inter-thread process. We can solve this problem using wait() and notify() methods in java programs.   In this java multithreading blog, 1st program we will see inter-thread problem. And 2nd program we will see solution of inter-thread process. […]

  • Suspend Resume in Multi Threading

    How to suspend resume process in Multi Threading Java Program? Suspend resume process is most important in multi threading process. Using of these method we can control process in time interval. In this program, Class B has two same processes to display 1 to 20 in every 500 msec. Main class ThreadEx8 controls both processes […]

  • Thread Priority in Multi Threading Process

    What is Thread Priority in Java Multi Threading Process? In multi threading process, we have to check which process is more important and which process is less important. We can set 1 to 10 Thread priority of any process. What are the value of MAX_PRIORITY, MIN_PRIORITY and NORM_PRIORITY? MAX_PRIORITY = 10 MIN_PRIORITY = 1 NORM_PRIORITY […]

  • StringBuffer Functions with examples

    In our last blog, we understand different and similarity of String Functions and StringBuffer Functions. In this blog, we will see example of StringBuffer class and functions.   List of StringBuffer Functions Functions Function’s Work reverse() To reverse String setCharAt(int,char) To replace index character insert(int,String) To add extra string in index append() To join two […]

  • Similarity and Different between String and StringBuffer Class

    In this blog, we will see similarity and different between String and StringBuffer Class. Similarity of String and StringBuffer Class String Functions StringBuffer Function length() length() charAt() charAt() getChars() getChars() replace() replace() substring() substring() indexOf() indexOf() lastIndexOf() lastIndexOf() String s1 = new String(“demo Text”); StringBuffer s1 = new StringBuffer(“demo Text”);   Above table mention all […]

  • Java getChars method with getBytes method

    Java getChars method stores string data into character array. We can copy all string and also part of string. Java getBytes method stores string data into byte array. We can find ASCII code from this function.   Let’s see example on java getChars method   class str8 {                 public static void main(String args[])                 […]