ExamVeda
Login
Home
41
Which of these package is used for text formatting in Java programming language?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
42
What will be the output of the following Java program?
import java.text.*;
import java.util.*;
class Date_formatting
{	 
    public static void main(String args[])
    {
  Date date = new Date();
  SimpleDateFormat sdf;
        sdf = new SimpleDateFormat("mm:hh:ss");
        System.out.print(sdf.format(date));
    }	
}

Note : The program is executed at 3 hour 55 minutes and 4 sec (24 hours time).
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
43
Which of this class can be used to format dates and times?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
44
Which of these class allows us to define our own formatting pattern for dates and time?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
45
Which of these formatting strings of SimpleDateFormat class is used to print week of the year?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
46
Which of the following matches nonword character using regular expression in java?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
47
What will be the output of the following Java program?
import java.text.*;
import java.util.*;
class Date_formatting
{	 
    public static void main(String args[])
    {
  Date date = new Date();
  SimpleDateFormat sdf;
        sdf = new SimpleDateFormat("z");
        System.out.print(sdf.format(date));
    }	
}

Note : The program is executed at 3 hour 55 minutes and 4 sec on Monday, 15 July(24 hours time).
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
48
Which of these method returns an instance of DateFormat that can format time information?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
49
what does public String replaceAll(string replace) do?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
50
Object of which class is used to compile regular expression?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board