/resourses/Message.properties:
Given the content of -
welcome1="Good day!"
and given the code fragment:
Properties prop = new Properties ();
FileInputStream fis = new FileInputStream ("/resources/Message.properties"); prop.load(fis);
System.out.println(prop.getProperty("welcome1"));
System.out.println(prop.getProperty("welcome2", "Test"));//line n1
System.out.println(prop.getProperty("welcome3"));
What is the result?
Ritesh_
Highly Voted 4 years, 9 months agoWilsonKKerll
2 years, 4 months agoInnovation
Highly Voted 4 years, 6 months agoiSnover
Most Recent 5 months, 4 weeks agoadnano1234
4 years, 6 months ago