Interview question regarding string

class StringInterview1

{

                public static void main(String arg[])

                {

                                String s=20+11+"Vikrant"+10+10;

                                System.out.println(s);

                }

}

String Interview Question 1.PNG

class StringInterview2

{

                public static void main(String arg[])

                {

                                int String=5;

                                String=String+5;

                                System.out.println(String);

                }

}

String Interview Question 2.PNG

, , , , , , ,

Leave a Reply