Showing posts with label questions. Show all posts
Showing posts with label questions. Show all posts

Wednesday, June 14, 2017

Java Interview questions index

Java Interview questions index



1. Java Interview Questions ( Set - 1 )

2. Java Interview Questions ( Set - 2 )

3. Java Interview Questions ( Set - 3 )









Available link for download

Read more »

Thursday, May 4, 2017

Judge Posner Questions Whether Owner of Patent on Heart Healthy Cookies Would Be Entitled To Nontrivial Damages

Judge Posner Questions Whether Owner of Patent on Heart Healthy Cookies Would Be Entitled To Nontrivial Damages


Last year I reported that Brandeis University had joined its exclusive licensee GFA Brands in suing a number of cookie companies for infringing its patents directed towards methods of "Increasing the HDL Level in the HDL/LDL Ratio in Human Serum by Balancing Saturated and Polyunsaturated Dietary Fatty Acids." The case is being heard by Judge Richard Posner in the Northern District of Illinois. On March 16, Judge Posner issued an interesting order in the case, ordering the parties to brief the issue of whether plaintiffs, if successful, would be entitled to nontrivial damage awards. Here is the order:

“I am concerned whether the plaintiffs if successful in establishing liability will be entitled to nontrivial damages awards. Suppose the defendants infringed the asserted patents but that none of the defendants marketed its products as low in bad cholesterol (LDL) or high in HDL, or as having a high ratio of HDL to LDL; and suppose further that the defendants obtained no cost savings by infringing the patents rather than using some non?infringing recipe and that neither Brandeis nor its licensee GFA Brands lost any business as a result of the infringement. On those assumptions, would the plaintiffs have any claim for damages, whether compensatory or punitive, or restitution? I would like the parties to address this question in briefs filed simultaneously by close of business on April 2.”
In other words, if the cookie manufacturers are not profiting from the healthy cookie recipe by using it to market their cookies, and the recipe does not cut their costs, then how has the patent owner been harmed, and what does Brandeis want the court to do? Perhaps the answer is that customers do pay a premium for healthier cookies, even if the cookie manufacturer does not use that information in marketing its products. And in any event, Brandeis/BFA would presumably like to get an injunction against the cookie manufacturers, as leverage to demand royalty payments, or to keep them off the market, thus reducing competition in the market for healthy cookies. But if the defendant cookie manufacturers do not profit from the technology, perhaps they will simply change their recipe, perhaps rendering their cookies less healthy but no less profitable.

Thanks to Docket Navigator for making me aware of this order.

Available link for download

Read more »

Sunday, April 2, 2017

Java Interview Questions

Java Interview Questions



Some of the java Interview Questions for the fresher and Experienced ( Set - 1 )

1. What is Java , speak something about Java ?

Ans: Basically few points has to be remembered regarding java :

a) Java is high level language.
b) Java is Compiled and Interpreted language.
c) Java is a Object-Oriented Language but not a pure Object-Oriented.
d) Java is Platform-Independent Language which makes language as Portable.
........ Click here to see more

If interviewer ask you to speak something about java then without any hesitation ,confidently go on explaining from very basic of java till OOPS concept. Still interview wont let you stop speaking then start explaining threading feature of java. But mostly they will let you cover all the basic things of java and then they start asking their next level of question.
You should speak about following points->
i> What is Java?
ii> OOPS features of Java.
iii> Explain in brief about each Oops features.

2. Is Java Platform Independent ? If yes then justify your answer ?

Ans: Yes , java is platform independent. As we know that java is compiled + interpreted language and .class file is the result of compilation and this file is going to be interpreted by JVM so we need JVM to execute this .class file and thus JVM has to be present and designed for each operating System like Windows , Unix etc.So due to the portability to .class file from a machine to another machine makes java platform independent.


3. What are the command for compiling and executing Java program ?

Ans: javac is a command for compiling java file will result in .class file
        java is a command for executing .class file.

4. What is Classpath in Java ?

Ans: Classpath in java means setting path for the .class files. Classpath is a command in java used for setting path for the .class file. Let suppose we have a .class file in a directory and we are currently at another location, now that .class file which is at different location so can be from another location but we need to set the path for the .class file using classpath command.
like this way, set classpath=......directorylocaltion....;

5. Who is the super class of all the Java classes ?

Ans: Object class is super class all the classes.

6. How many keywords does Java have , name few which you have used in your program?

Ans: Java has 50 keywords. Some of the commonly used keywords are :-

public    private     protected    static    final    new    synchronized    class   int   float   long  
byte       double   default     abstract      interface   for   if     import   package   instanceof  
native     return   super    this   strictfp    switch   throw    throws   try   catch   void   while  
transient   volatile   void    implements    goto      finally   enum   do   continue   const  
break    assert   else   short.
null   true   false  ( These 3 words are Reserved word ).

7. What is "this" in Java and what is its use ?

Ans: Few points about this has to be remembered :

a) At very first this is a keyword in java.
b) this points to the current object.
c) Although this is not a variable so it cannot hold any other reference.
...........Click here to know more

Some of the used of "this" keyword -
a) this is the simplest way to use instead of current object reference.
b) As it always points to the current object , so we can perform any task using this for the current object.

8. What is "super" in Java and for what purpose super is being used in Java programs ?

Ans:  Few points about this has to be remembered :

a) At first super is a keyword in java.
b) super refers to the inherited member from super class to its sub-class.
...........Click here to know more

9. How "this" is different from "super" ?

Ans: Point of differences :

a) this refers to the current object where as super refers to the inherited member of the super class.
b) this() is used for constructor chaining where as super() is used for calling super class default constructor.

10. Is Java is pure-object oriented language and why ?

Ans: No java is not a pure-Objected Oriented Language.
Basically there are two strong reason by which we can conclude and say that java is not a pure- Object Oriented Language, they are-

a) Use of static will not involve any Object creation.
b) Use of primitive type. Although respective Wrapper class is there but still primitive is being used for many purposes.

11. Is Java supporting multiple inheritance and why ?

Ans: No java is not supporting Multiple inheritance directly but approached towards performing multiple inheritance using interfaces. There would lead to some issues if java is supporting multiple inheritance directly :
a) Memory wastage problem
b) Ambiguity Problem in calling methods.

12. Is pointer supported by Java and why?

Ans: Yes Pointer are supported by java but is fully abstract from the developer. It is internally implemented by the java vendor. It is not given at the developer level as because to make java secured. As we know that pointer directly goes to the memory address so there may have chance of security threat if pointer is allowed to implement in java.

13. What is the use of  "native" keyword in Java ?

Ans: native is a keyword in java and are used with the method, which says, that method is implemented using some low level language. So if we have to implement something in low level language then we can use the native keyword.

14. What is Constructor ?

Ans: Constructor is like a method but with no return type. Constructor has same name as the class name. It is used to initialize the  instance variable.
..........Click here to know more

15. What is the purpose of making main() as static ? 

Ans: Purpose of main() as static:
a) So that JVM need not to create any object to call main().
.............Clicl here to know more

16. Does Constructor return any value ? 

Ans: As constructor doesnt have any return type so it cannot return any value, bt we can write return in the constructor as writing return simply means returning the control to the caller.

17. What if we write simply "return" statement in constructor?

Ans: Nothing will happen it will simply return the control to the caller.

18. How may types of initialization blocks in java ?

Ans: There are two types of initialization block:
1. Static initialization block
2. Instance initialization block.

19. What is the use of introducing static initializing block in java ?

Ans: Static initialization block can be used for following purposes:

a) It can be used to initialize the final static variable.
b) It can be used to execute some other method before the main() method.
...............Click here to know more

20. What is the use and purpose of instance initialization block in java ?

Ans: Static initialization block can be used for following purposes:

a) It can be used to initialize the final instance variable.












Available link for download

Read more »

Tuesday, February 21, 2017

Ive been tagged! 13 Halloween Questions Tag

Ive been tagged! 13 Halloween Questions Tag


Its been a while since Ive done a good old-fashioned tag post but there are pretty fun so why not? I was tagged to answer some Halloween questions by the delightful Sylvie of Little Corp Goth Girl (who you all should definitely check out!)



My nominees are:

1. Cafe LaStrange
2. Goth It Yourself
3. Goth Gardening
4. Domesticated Goth
5. The Mutant Stomp Friends

1. Favorite Halloween song?

Have you heard Spooky Scary Skeletons by The Living Tombstone? Well, you should listen to it. Ive been enjoying it a lot lately.

2. Witch or Vampire?

Any other year I probably would have said Vampire but I think this year its gotta be Witch! Im loving witchy fashion this time of year, Ive been connecting with some of my friends over witchcraft, Im still reeling from my recent trip to Salem, Ive been falling back in love with tarot, and Ive been basing a lot of my historical independent research on witchcraft in early modern Europe... so definitely witches.

3. Favorite thing about Halloween?

The build up to Halloween is definitely my favorite part. Hearing everyone get excited about it, watching Halloween stuff crop up in storms, watching people start to decorate, hearing my little siblings jabber excitedly about what theyre going to wear. Just soaking up the season is great.

4. Halloween party or scary movie marathon?

Movie marathon! Im not much of a hardcore party person, Id rather just enjoy the spook with some close friends and watch movies (Scary or just Halloween themed.)

5. Skeletons or Zombies?

Skeletons! Although Ive re-fallen in love with The Walking Dead I think thats about the only Zombie-related thing Ive been into for years. Skeletons, on the other hand, are always fun.

6. Favorite Halloween candy?

Mmmmmmm... Butterfingers probably!

7. Favorite Halloween movie?

Tough one! A lot of movies that people think of as specifically Halloween movies I watch year round, though... I think The Craft, while not specifically one about Halloween, would probably be my favorite these days.

8. Favorite Halloween costume?

I love putting together Vampire costumes, its usually just an excuse to look extra spooky and wear my fangs and it always gets a good reaction!

9. Favorite Halloween store?

Michaels! I find the best of my Halloween stuff at Michaels every year and I usually make multiple trips (which I need to do soon...)

10. Jack-o-lanterns, yes or no?

I absolutely love jack-o-lanterns as a decorative piece and seeing them around but I dont get a lot of joy out of carving my own pumpkins (Im clumsy with a knife and prone to accidental injury.) Id rather just have a small decorative gourd and enjoy everyone elses masterpieces. Speaking of, have you seen this guy? Wild.

11. Bats or Black Cats?

Black cats! Really just because I cant cuddle a bat under normal circumstances and because Im slightly nostalgic for my cat Zoot back home in Maryland. Bats still hold a special place in my heart, though.

12. Is Halloween your favorite holiday?

Unquestionably yes! Its been since I was a little kid. Everything about it thrills me.

13. Pumpkin spice latte or hot chocolate?

Pumpkin spice latte! Im not much of a fan of hot chocolate these days. When I can I add a little bit of pumpkin spice mix (cloves, cinnamon, nutmeg, etc) to my regular coffee grounds to make pumpkin spiced coffee on my own.

Again, thanks so much Sylvie for tagging me! Be sure to let me know if youre posting this tag, even if I wasnt the one to tag you! Id love to read your responses.

Available link for download

Read more »