21 April 2016

What is Java Bytecode ?


Java Bytecode
  • When a Java program source is compiled, the output of the Java compiler is called bytecode. 
  • Many language generate executable code after compilation. 
  • In Java the output is converted to a special type of file which is called the bytecode.
  • Bytecode is a highly optimized set of instructions designed to be executed by the Java run-time system,which is called the Java Virtual Machine (JVM). 
  • Bytecode makes it much easier to run a program in  a wide variety of environments because only the JVM needs to be implemented for each  platform.


Java: A Beginner's Guide, Seventh Edition

What is Java Applets and Java Servlet ?


Java Applet
  • An Java applet is a special kind of small Java program that is designed to be transmitted over the Internet and automatically executed by a Java-compatible web browser. 
  • Applet are typically used to display data provided by the server, handle user input, or provide simple functions, such as a loan calculator, that execute locally on client machine, rather than on the server.
  • An applet is downloaded on demand, without further interaction with the user. 
  • When a user clicks a link that contains an applet, the applet will be automatically downloaded and run in the browser.
    Java Applets and Java Servlet
 Java Servlet:
  • A servlet is a small program that executes on a server. 
  • Servlets dynamically extend the functionality of a web server and applets dynamically extend the functionality of a web browser. 
  • Java spanned both sides of the client/server connection with Applet and Servlet.



Java: The Complete Reference, Tenth Edition (Complete Reference Series)

20 April 2016

How Java is relates to C, C++ & C# programming language

  • Java programming language syntax come from C programming language. 
  • Java language object model is adapted from C++ programming language. 
  • Java also inherits design philosophy from C/C++.
  • Although Java was influenced by C++, it is not an enhanced version of C++. 
  • Java has many distinct features than C/C++.
  • Microsoft developed the C# (C- Sharp) language after few years of the creation of Java &  C# is closely related to Java.
    Java,C,  C++ & C# programming language
  • Many of C#’s features directly parallel Java. 
  • Both Java and C# share the same general C++-style syntax, support distributed programming, and utilize the same object model. 
  • There are, of course, differences between Java and C#, but the overall “look and feel” of these languages is very similar.

Java All-in-One For Dummies (For Dummies (Computers))

What is Java (programming language)

  • Java is a general-purpose,powerful and versatile computer programming language for developing software  running on mobile devices, desktop computers, and servers.
  • Java was developed by a team led by James Gosling at Sun Microsystems. 
  • Sun Microsystems was purchased by Oracle in 2010. 
  • Originally called Oak,Java was designed in 1991 for use in embedded chips in consumer electronic appliances. 
  • In 1995, renamed Java, it was redesigned for developing Web applications.
  • The Java programming language is well known for the following reason:
  • Java is Simple and easy to learn, 
  • Object oriented, 
  • Distributed,
  • Interpreted, 
  • Robust, 
  • Secure, 
  • Architecture neutral, 
  • Portable, 
  • High performance, 
  • Multi-threaded, and dynamic.
Java: A Beginner's Guide, Sixth Edition

11 October 2015

How to start & stop Apache httpd 2.4.* Web Server on linux


  • You can start & stop apache httpd version 2.4.* web server on linux using two simple linux command given bellow.
  • Step 1: Start Apache Command :
[root@webservr]#
apachectl start
  • Step 2: Stop Apache Command
[root@webservr]#
 apachectl stop
  • Step3: Its Done.
Apache HTTP Server 2.4 Reference Manual 3/3 (Volume 3)

12 September 2015

How to redirect your website from HTTP to HTTPS on Apache HTTP Web Server


HTTP to HTTPS
  • You can automatically redirect your website visitor from http://www.yourwebsite.com  to https://www.yourwebsite.com  in various ways. 
  • This blog post will show you how to redirect your website from http to https using a simple .htaccess file saved on your web server.
  • Step 1: Install & configure mod_ssl on your Apache HTTP Server.
  • Step 2: Enable the mod_rewrite modules by editing the ‘httpd.conf’ apache configuration file.
  • Step 3: create an ‘.htaccess’ file and write the following code on that .htaccess file & save the file on your web server document root directory.   
  
 RewriteEngine On
 RewriteCond %{HTTPS} off
 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Pro Apache (Expert's Voice)

26 February 2015

WordPress theme & plugins installation “Download failed” problem solved

  • If you are getting an error message while tried to install any WordPress theme or plug-ins from wordpress admin panel. If the error message says “Download failed. There are no HTTP transports available which can complete the requested request.”. Then this post might help you. 

  • Step1:  You have to edit your php.ini file, so find the php.ini file & open it with notepad.
php.ini


  • Step2: Find “php_curl” extension on the php.ini file
php.ini


  • Step3: After finding, now enable the php_curl extension by removing the semicolon (;) 
php.ini


  • Step4: save the php.ini file & close it
  • Step5: Restart the apache service.
  • Step6: It’s done. 
  • Now you can download any wordpress themes & plugins from wordpress admin panel.




WordPress All-in-One For Dummies

Featured Post

How to Write PHP code and HTML code within a same file

A PHP file can have both PHP code and HTML code together. Any HTML code written outside of PHP <?php //php code here… ?> Code is ig...

Popular Posts