642). Which of these methods of httpd class is used to read data from the stream?

[A] getDta()
[B]GetResponse()
[C]getStream()
[D]getRawRequest()

Show Answer

644). Which of these methods are used to find a URL from the cache of httpd?

[A]findfromCache()
[B] findFromCache()
[C]serveFromCache()
[D]getFromCache()

Show Answer

646). Which of these method of httpd class is used to write UrlCacheEntry object into local disk?

[A]writeDiskCache()
[B]writetoDisk()
[C]writeCache()
[D]writeDiskEntry()

Show Answer

647). What will be the output of the following Java program?
    import java.net.*;
    class networking 
    {
        public static void main(String[] args) throws Exception 
        {
            URL obj = new URL("https://www.sanfoundry.com/javamcq");
            URLConnection obj1 = obj.openConnection();
            int len = obj1.getContentLength();
            System.out.print(len);
        }
    }

[A]126
[B]127
[C]Compilation Error
[D]Runtime Error

Show Answer

648). Which of these method is used to start a server thread?
    import java.net.*;
    class networking 
    {
        public static void main(String[] args) throws Exception 
        {
            URL obj = new URL("https://www.sanfoundry.com/javamcq");
            URLConnection obj1 = obj.openConnection();
            int len = obj1.getContentLength();
            System.out.print(len);
        }
    }

[A]run()
[B]start()
[C]runThread()
[D]startThread()

Show Answer

649). Which of these method is called when http daemon is acting like a normal web server?
    import java.net.*;
    class networking 
    {
        public static void main(String[] args) throws Exception 
        {
            URL obj = new URL("https://www.sanfoundry.com/javamcq");
            URLConnection obj1 = obj.openConnection();
            int len = obj1.getContentLength();
            System.out.print(len);
        }
    }

[A]Handle()
[B]HandleGet()
[C] handleGet()
[D]Handleget()

Show Answer